Skip to content

Instantly share code, notes, and snippets.

@zzak
Created June 13, 2014 21:23
Show Gist options
  • Save zzak/2b326395139bdc7140f7 to your computer and use it in GitHub Desktop.
Save zzak/2b326395139bdc7140f7 to your computer and use it in GitHub Desktop.
ActiveModel::MassAssignmentSecurity::Error: Can't mass-assign protected attributes for Membership: member_type
/Users/zscott/projects/protected_attributes/lib/active_model/mass_assignment_security/sanitizer.rb:60:in `process_removed_attributes'
/Users/zscott/projects/protected_attributes/lib/active_model/mass_assignment_security/sanitizer.rb:10:in `sanitize'
/Users/zscott/projects/protected_attributes/lib/active_model/mass_assignment_security.rb:346:in `sanitize_for_mass_assignment'
/Users/zscott/projects/protected_attributes/lib/active_record/mass_assignment_security/attribute_assignment.rb:58:in `assign_attributes'
/Users/zscott/projects/protected_attributes/lib/active_record/mass_assignment_security/core.rb:8:in `init_attributes'
/Users/zscott/projects/rails/activerecord/lib/active_record/core.rb:268:in `initialize'
/Users/zscott/projects/rails/activerecord/lib/active_record/inheritance.rb:30:in `new'
/Users/zscott/projects/rails/activerecord/lib/active_record/inheritance.rb:30:in `new'
/Users/zscott/projects/protected_attributes/lib/active_record/mass_assignment_security/reflection.rb:5:in `build_association'
/Users/zscott/projects/protected_attributes/lib/active_record/mass_assignment_security/associations.rb:5:in `build_record'
/Users/zscott/projects/protected_attributes/lib/active_record/mass_assignment_security/associations.rb:19:in `build'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment