mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Removed mention of deprecated ActiveModel::Errors#on
This commit is contained in:
parent
044e6ac245
commit
930dc335d7
1 changed files with 2 additions and 3 deletions
|
@ -205,9 +205,8 @@ module ActiveModel
|
||||||
messages.dup
|
messages.dup
|
||||||
end
|
end
|
||||||
|
|
||||||
# Adds +message+ to the error messages on +attribute+, which will be returned on a call to
|
# Adds +message+ to the error messages on +attribute+. More than one error can be added to the same
|
||||||
# <tt>on(attribute)</tt> for the same attribute. More than one error can be added to the same
|
# +attribute+.
|
||||||
# +attribute+ in which case an array will be returned on a call to <tt>on(attribute)</tt>.
|
|
||||||
# If no +message+ is supplied, <tt>:invalid</tt> is assumed.
|
# If no +message+ is supplied, <tt>:invalid</tt> is assumed.
|
||||||
#
|
#
|
||||||
# If +message+ is a symbol, it will be translated using the appropriate scope (see +translate_error+).
|
# If +message+ is a symbol, it will be translated using the appropriate scope (see +translate_error+).
|
||||||
|
|
Loading…
Reference in a new issue