method
debug_protected_attribute_removal
v3.2.1 -
Show latest stable
- Class:
ActiveModel::MassAssignmentSecurity::Sanitizer
debug_protected_attribute_removal(attributes, sanitized_attributes)protected
No documentation available.
# File activemodel/lib/active_model/mass_assignment_security/sanitizer.rb, line 18
def debug_protected_attribute_removal(attributes, sanitized_attributes)
removed_keys = attributes.keys - sanitized_attributes.keys
process_removed_attributes(removed_keys) if removed_keys.any?
end