class ActiveRecord::AttributeAssignmentError

Parent:
ActiveRecord::ActiveRecordError

Raised when an error occurred while doing a mass assignment to an attribute through the attributes= method. The exception has an attribute property that is the name of the offending attribute.

Attributes

attribute[R]
exception[R]

Public Class Methods

new(message, exception, attribute) Show source
Calls superclass method
# File activerecord/lib/active_record/errors.rb, line 186
def initialize(message, exception, attribute)
  super(message)
  @exception = exception
  @attribute = attribute
end

© 2004–2016 David Heinemeier Hansson
Licensed under the MIT License.