1
0
Fork 0
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:
Martin Svalin 2011-10-19 23:06:08 +02:00
parent 044e6ac245
commit 930dc335d7

View file

@ -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+).