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:
parent
cf55e4e382
commit
87bd8c803b
1 changed files with 4 additions and 5 deletions
|
@ -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.
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue