class method
self.new
Ruby on Rails 3.1.12
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 156
def initialize(message, exception, attribute)
@exception = exception
@attribute = attribute
@message = message
end
Defined in activerecord/lib/active_record/errors.rb line 156
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::AttributeAssignmentError