Skip to content

Commit

Permalink
Fix translate_error reference for Error#add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jdelStrother committed Jan 25, 2012
1 parent b844bf6 commit 73e71c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activemodel/lib/active_model/errors.rb
Expand Up @@ -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)
Expand Down

0 comments on commit 73e71c2

Please sign in to comment.