We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm trying to create a new user and I pass a 'note' in the params as it's an associated model but this breaks with:
ActiveModel::MassAssignmentSecurity::Error (Can't mass-assign protected attributes: note): activemodel (3.2.13) lib/active_model/mass_assignment_security/sanitizer.rb:48:in process_removed_attributes' activemodel (3.2.13) lib/active_model/mass_assignment_security/sanitizer.rb:20:indebug_protected_attribute_removal' activemodel (3.2.13) lib/active_model/mass_assignment_security/sanitizer.rb:12:in sanitize' activemodel (3.2.13) lib/active_model/mass_assignment_security.rb:230:insanitize_for_mass_assignment' activerecord (3.2.13) lib/active_record/attribute_assignment.rb:75:in assign_attributes' activerecord (3.2.13) lib/active_record/base.rb:498:ininitialize' lib/enumerated_attribute/integrations/active_record.rb:106:in `new'
process_removed_attributes' activemodel (3.2.13) lib/active_model/mass_assignment_security/sanitizer.rb:20:in
sanitize' activemodel (3.2.13) lib/active_model/mass_assignment_security.rb:230:in
assign_attributes' activerecord (3.2.13) lib/active_record/base.rb:498:in
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm trying to create a new user and I pass a 'note' in the params as it's an associated model but this breaks with:
ActiveModel::MassAssignmentSecurity::Error (Can't mass-assign protected attributes: note):
activemodel (3.2.13) lib/active_model/mass_assignment_security/sanitizer.rb:48:in
process_removed_attributes' activemodel (3.2.13) lib/active_model/mass_assignment_security/sanitizer.rb:20:in
debug_protected_attribute_removal'activemodel (3.2.13) lib/active_model/mass_assignment_security/sanitizer.rb:12:in
sanitize' activemodel (3.2.13) lib/active_model/mass_assignment_security.rb:230:in
sanitize_for_mass_assignment'activerecord (3.2.13) lib/active_record/attribute_assignment.rb:75:in
assign_attributes' activerecord (3.2.13) lib/active_record/base.rb:498:in
initialize'lib/enumerated_attribute/integrations/active_record.rb:106:in `new'
The text was updated successfully, but these errors were encountered: