1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Update errors docs

This commit is contained in:
Mikel Lindsaar 2010-01-17 15:41:41 +11:00
parent cf55e4e382
commit 87bd8c803b

View file

@ -9,6 +9,9 @@ module ActiveModel
#
# class Person
#
# # Required dependency for ActiveModel::Errors
# extend ActiveModel::Naming
#
# def initialize
# @errors = ActiveModel::Errors.new(self)
# end
@ -34,13 +37,9 @@ module ActiveModel
# [self]
# end
#
# def ErrorsPerson.model_name
# ActiveModel::Name.new(ErrorsPerson)
# end
#
# end
#
# The last four methods are required in your object for Errors to be
# The last three methods are required in your object for Errors to be
# able to generate error messages correctly and also handle multiple
# languages.
#