instance method
debug_protected_attribute_removal
Ruby on Rails 3.0.20
Since v3.0.20 Last seen in v3.2.22.5Signature
debug_protected_attribute_removal(attributes, sanitized_attributes)
No documentation comment.
Parameters
-
attributesreq -
sanitized_attributesreq
Source
# File activemodel/lib/active_model/mass_assignment_security/sanitizer.rb, line 13
def debug_protected_attribute_removal(attributes, sanitized_attributes)
removed_keys = attributes.keys - sanitized_attributes.keys
warn!(removed_keys) if removed_keys.any?
end
Defined in activemodel/lib/active_model/mass_assignment_security/sanitizer.rb line 13
· View on GitHub
· Improve this page
· Find usages on GitHub