Exception: ActiveModel::MassAssignmentSecurity::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/mongomodel/vendor/active_model/mass_assignment_security/sanitizer.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(klass, attrs) ⇒ Error

Returns a new instance of Error



69
70
71
# File 'lib/mongomodel/vendor/active_model/mass_assignment_security/sanitizer.rb', line 69

def initialize(klass, attrs)
  super("Can't mass-assign protected attributes for #{klass.name}: #{attrs.join(', ')}")
end