method
new
v3.2.1 -
Show latest stable
- Class:
ActiveModel::Errors
new(base)public
Pass in the instance of the object that is using the errors object.
class Person def initialize @errors = ActiveModel::Errors.new(self) end end
new(base)Pass in the instance of the object that is using the errors object.
class Person def initialize @errors = ActiveModel::Errors.new(self) end end