Class Index [+]

Quicksearch

ActiveModel::MassAssignmentSecurity::StrictSanitizer

Public Instance Methods

insensitive_attributes() click to toggle source
    # File lib/active_model/mass_assignment_security/sanitizer.rb, line 51
51:       def insensitive_attributes
52:         ['id']
53:       end
process_removed_attributes(attrs) click to toggle source
    # File lib/active_model/mass_assignment_security/sanitizer.rb, line 46
46:       def process_removed_attributes(attrs)
47:         return if (attrs - insensitive_attributes).empty?
48:         raise ActiveModel::MassAssignmentSecurity::Error, "Can't mass-assign protected attributes: #{attrs.join(', ')}"
49:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.