class method
self.new
Ruby on Rails 3.2.22.5
Since v2.2.3Signature
self.new(message, exception, attribute)
No documentation comment.
Parameters
-
messagereq -
exceptionreq -
attributereq
Source
# File activerecord/lib/active_record/errors.rb, line 166
def initialize(message, exception, attribute)
@exception = exception
@attribute = attribute
@message = message
end
Defined in activerecord/lib/active_record/errors.rb line 166
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::AttributeAssignmentError