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