rails / protected_attributes

Protect attributes from mass-assignment in ActiveRecord models.
MIT License
228 stars 92 forks source link

undefined method `options_for_through_record' #75

Closed covalsoest closed 9 years ago

covalsoest commented 9 years ago

After upgrade I got:

protected_attributes-1.1.1/lib/active_record/mass_assignment_security/associations.rb:96:in <class:HasManyThroughAssociation>': undefined methodoptions_for_through_record' for class `ActiveRecord::Associations::HasManyThroughAssociation' (NameError)

rafaelfranca commented 9 years ago

Could you give more information? Which version of Rails are you using? What are you trying to do?

covalsoest commented 9 years ago

Thanks for the quick response. It's working ok now (updated to version 1.1.3)

I did a bundle update and the gem updated from 1.0.8 to 1.1.1:

gems/protected_attributes-1.0.8/lib/active_record/mass_assignment_security/associations.rb gems/protected_attributes-1.1.1/lib/active_record/mass_assignment_security/associations.rb

Gems included by the bundle after upgrade are: