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.

Methods

Attributes

[R] attribute
[R] exception

Class Public methods

new(message = nil, exception = nil, attribute = nil)

📝 Source code
# File activerecord/lib/active_record/errors.rb, line 439
    def initialize(message = nil, exception = nil, attribute = nil)
      super(message)
      @exception = exception
      @attribute = attribute
    end
🔎 See on GitHub