instance method debug_protected_attribute_removal

Ruby on Rails 3.1.12

Since v3.0.20 Last seen in v3.2.22.5

Available in: v3.0.20 v3.1.12 v3.2.22.5

Signature

debug_protected_attribute_removal(attributes, sanitized_attributes)

No documentation comment.

Parameters

attributes req
sanitized_attributes req
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

Defined in ActiveModel::MassAssignmentSecurity::Sanitizer

Type at least 2 characters to search.

↑↓ navigate · open · esc close