aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib
diff options
context:
space:
mode:
authorJonathan del Strother <jdelStrother@gmail.com>2012-01-25 15:02:20 +0000
committerJonathan del Strother <jdelStrother@gmail.com>2012-01-25 15:02:20 +0000
commit73e71c27f2af1af433db7c49f5d1aa9860546394 (patch)
treec57c6ed061ce6df8eba2d4338d48fe55f98327dd /activemodel/lib
parentb844bf6a65c4e8eb330f45ef7b8343bec657bab9 (diff)
downloadrails-73e71c27f2af1af433db7c49f5d1aa9860546394.tar.gz
rails-73e71c27f2af1af433db7c49f5d1aa9860546394.tar.bz2
rails-73e71c27f2af1af433db7c49f5d1aa9860546394.zip
Fix translate_error reference for Error#add documentation
Diffstat (limited to 'activemodel/lib')
-rw-r--r--activemodel/lib/active_model/errors.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/errors.rb b/activemodel/lib/active_model/errors.rb
index 5cd8f77f0d..023c872055 100644
--- a/activemodel/lib/active_model/errors.rb
+++ b/activemodel/lib/active_model/errors.rb
@@ -219,7 +219,7 @@ module ActiveModel
# +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+).
+ # If +message+ is a symbol, it will be translated using the appropriate scope (see +generate_message+).
# If +message+ is a proc, it will be called, allowing for things like <tt>Time.now</tt> to be used within an error.
def add(attribute, message = nil, options = {})
message = normalize_message(attribute, message, options)