Closed bendangelo closed 2 months ago
I think the fix for this issue https://github.com/rom-rb/rom/issues/684 does not work for map_with. undef :with
here seems to do the trick
Thanks for reporting, it was fixed in 5.3.2, please check it out
thanks
Describe the bug
Using rom-core 5.3.1, rails 7.1.3.2
The map_with interface in the relationship.rb file breaks when running rails 7.1+ but works fine on rails 7.0.
Error given: ArgumentError: wrong number of arguments (given 1, expected 0)
To Reproduce
Create a basic mapping:
Note .by_pk and .one are not a factor.
Expected behavior
I expect map_with to work as it does when running rails 7.0. I've downgraded and upgraded and the only difference is the rails upgrade.
My environment