Closed nickcampbell18 closed 2 years ago
Now, with these changes in arity, will people have to... uh, change their invocations?
In short, I don't think so - in Ruby 2.6, their old code should work fine, in Ruby 2.7 it generates a warning now, and in Ruby 3+ we already had to use this syntax (I should know since I'm using this in a Ruby 3.0 application already)
Note that Rails 6+ does not run on Ruby 2.6, so they must be explicitly excluded from testing - see rails/rails#40938.
I also had to fix some issues with Ruby 3 keyword arguments, see the second commit.
Closes https://github.com/jesjos/active_record_upsert/issues/116