Permalink
Browse files

Removed mention of deprecated ActiveModel::Errors#on

  • Loading branch information...
1 parent 044e6ac commit 930dc335d7067b17191257faf03fcecba3351caa @martinsvalin martinsvalin committed Oct 19, 2011
Showing with 2 additions and 3 deletions.
  1. +2 −3 activemodel/lib/active_model/errors.rb
@@ -205,9 +205,8 @@ def to_hash
messages.dup
end
- # Adds +message+ to the error messages on +attribute+, which will be returned on a call to
- # <tt>on(attribute)</tt> for the same attribute. More than one error can be added to the same
- # +attribute+ in which case an array will be returned on a call to <tt>on(attribute)</tt>.
+ # Adds +message+ to the error messages on +attribute+. More than one error can be added to the same
+ # +attribute+.
# 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+).

0 comments on commit 930dc33

Please sign in to comment.