Flowdock
method

new

Importance_1
v3.0.9 - Show latest stable - 0 notes - 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
Show source
Register or log in to add new notes.