Exception: ActiveRecord::AttributeAssignmentError

Inherits:
ActiveRecordError show all
Defined in:
lib/active_record/base.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, exception, attribute) ⇒ AttributeAssignmentError

Returns a new instance of AttributeAssignmentError.



32
33
34
35
36
# File 'lib/active_record/base.rb', line 32

def initialize(message, exception, attribute)
  @exception = exception
  @attribute = attribute
  @message = message
end

Instance Attribute Details

#attributeObject (readonly)

Returns the value of attribute attribute.



31
32
33
# File 'lib/active_record/base.rb', line 31

def attribute
  @attribute
end

#exceptionObject (readonly)

Returns the value of attribute exception.



31
32
33
# File 'lib/active_record/base.rb', line 31

def exception
  @exception
end