Hi,

I'm wondering if it's possible to use a custom adder with a keyword arg 
that doesn't throw a deprecation warning in Ruby 2.7+

For example, if you have an adder like this:

adder: (lambda do |entity, some_key_word_arg: default|
  # do something
end),

You get a warning from the following line in add_associated_objects in 
associations.rb:
return if !send(opts[:_add_method], o, *args) && 
opts.handle_silent_modification_failure?
when it's called.

Is there a way do this without the warning?

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sequel-talk/8400c272-e1e5-4afd-ac82-29c7a9a4c8een%40googlegroups.com.

Reply via email to