Closed kyoshidajp closed 2 years ago
Is this expected to work on Ruby 2.X as well?
@nesquena Yes. It works as expected on Ruby 2.6.6 and 2.7.4.
The modified code was verified by working with the above version. The context when a breakpoint is placed in the method_missing
method is as follows.
In the specs, I need to change activerecord version as 6.1.6.1, then run successfully on Ruby 2.6.6, 2.7.4 and 3.1.2.
Thanks!
On Ruby 3.0 or later with Rails, if the following template exists
then, the following error raised.
This is due to a breaking change in the keyword argument in Ruby 3.0.