Permalink
Browse files

Fix translate_error reference for Error#add documentation

  • Loading branch information...
1 parent b844bf6 commit 73e71c27f2af1af433db7c49f5d1aa9860546394 @jdelStrother jdelStrother committed Jan 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 activemodel/lib/active_model/errors.rb
@@ -219,7 +219,7 @@ def to_hash
# +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)

0 comments on commit 73e71c2

Please sign in to comment.