aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2011-10-20 23:20:44 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2011-10-20 23:20:44 +0530
commitaf1b5c54cfb74caddd6ffab171d26da9a5c885d1 (patch)
tree2e029d8df73d62c456fce667a647dabf93397863 /activemodel/lib
parentee9d9fb5fab3cfaa5055e5fb4225b720d3818c94 (diff)
parent274c3fad5087306a64ca91d044756221f5ff862c (diff)
downloadrails-af1b5c54cfb74caddd6ffab171d26da9a5c885d1.tar.gz
rails-af1b5c54cfb74caddd6ffab171d26da9a5c885d1.tar.bz2
rails-af1b5c54cfb74caddd6ffab171d26da9a5c885d1.zip
Merge branch 'master' of github.com:lifo/docrails
Diffstat (limited to 'activemodel/lib')
-rw-r--r--activemodel/lib/active_model/errors.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/activemodel/lib/active_model/errors.rb b/activemodel/lib/active_model/errors.rb
index 6aa0d2a16f..8337b04c0d 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+).