Closed mcfiredrill closed 9 years ago
this error should be resolved by PR #54
Nice, just tried it out, seems to fix the problem. :+1:
Have no idea about the code so I can't give any feedback on that.
gem "protected_attributes", :github => "rails/protected_attributes"
Any plans for a protected_attributes gem release?
should be fixed by https://github.com/rails/protected_attributes/pull/64
I have a problem that seems to be similar to https://github.com/rails/rails/issues/18121
rails: 4-2-stable git protected_attributes: git master branch
There seems to be another method signature mismatch HasManyThroughAssociation#build_record(https://github.com/rails/protected_attributes/blob/master/lib/active_record/mass_assignment_security/associations.rb#L72), which only takes one argument now, and the subsequent override in protected_attributes(https://github.com/rails/protected_attributes/blob/master/lib/active_record/mass_assignment_security/associations.rb#L72) . Say I have a users table, tasks table, and users_tasks table with has_many :through set up on both sides.
I have an example repo with a test that will trigger the error: https://github.com/mcfiredrill/rails_bug The test is here: https://github.com/mcfiredrill/rails_bug/blob/master/test/models/user_test.rb#L7