Skip to Content Skip to Search

class ActiveRecord::AttributeAssignmentError

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

Inherits From


[R] attribute
[R] exception

Public class methods

Source code GitHub
# File activerecord/lib/active_record/errors.rb, line 423
def initialize(message = nil, exception = nil, attribute = nil)
  @exception = exception
  @attribute = attribute

Definition files