Closed sontixyou closed 3 months ago
@sontixyou Thank you for submitting this. I would like to see a test for this usage, perhaps we can take the example @issei-m provided in #305?
@flavorjones Thanks for the reply! I have added a test on the changes. Could you please review them?
Looks great, thank you so much!
@kbrock We should probably ship this in a bugfix release. You OK if I go ahead and do that?
Problem being solved
fix this issue. https://github.com/active-hash/active_hash/issues/305
I think that merging this PR will eliminate the error that is occurring in the above issue.
Investigation
ActiveHash supports up to Rails ver5.0. I checked Rails ver5.0 to Rails ver7.1 Then I found that the argument structure of the has_many method is almost the same.
Hence, I modified it to pass the same arguments as ActiveRecord#has_many.