class ActiveModel::Errors

def initialize(base)

end
end
@errors = ActiveModel::Errors.new(self)
def initialize
class Person

Pass in the instance of the object that is using the errors object.
def initialize(base)
  @base = base
  @errors = []
end