Module: Toy::MassAssignmentSecurity
- Extended by:
- ActiveSupport::Concern
- Includes:
- ActiveModel::MassAssignmentSecurity
- Included in:
- Store
- Defined in:
- lib/toy/mass_assignment_security.rb
Instance Method Summary collapse
Instance Method Details
#attributes=(attrs, guard_protected_attributes = true) ⇒ Object
6 7 8 9 |
# File 'lib/toy/mass_assignment_security.rb', line 6 def attributes=(attrs, guard_protected_attributes=true) attrs = sanitize_for_mass_assignment(attrs || {}) if guard_protected_attributes super(attrs) end |