From 73e71c27f2af1af433db7c49f5d1aa9860546394 Mon Sep 17 00:00:00 2001 From: Jonathan del Strother Date: Wed, 25 Jan 2012 15:02:20 +0000 Subject: Fix translate_error reference for Error#add documentation --- activemodel/lib/active_model/errors.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activemodel/lib') 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, :invalid 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 Time.now to be used within an error. def add(attribute, message = nil, options = {}) message = normalize_message(attribute, message, options) -- cgit v1.2.3