diff options
author | Martin Svalin <martin@lite.nu> | 2011-10-19 23:06:08 +0200 |
---|---|---|
committer | Martin Svalin <martin@lite.nu> | 2011-10-19 23:13:15 +0200 |
commit | 930dc335d7067b17191257faf03fcecba3351caa (patch) | |
tree | ef1855ee8dded7029375580d686397e0d52584d2 | |
parent | 044e6ac245c24b91f7f815e2155bb7ac030ce831 (diff) | |
download | rails-930dc335d7067b17191257faf03fcecba3351caa.tar.gz rails-930dc335d7067b17191257faf03fcecba3351caa.tar.bz2 rails-930dc335d7067b17191257faf03fcecba3351caa.zip |
Removed mention of deprecated ActiveModel::Errors#on
-rw-r--r-- | activemodel/lib/active_model/errors.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/activemodel/lib/active_model/errors.rb b/activemodel/lib/active_model/errors.rb index d91e4a2b6a..6db3ca7340 100644 --- a/activemodel/lib/active_model/errors.rb +++ b/activemodel/lib/active_model/errors.rb @@ -205,9 +205,8 @@ module ActiveModel 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+). |