aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/validations.rb
diff options
context:
space:
mode:
authorLuca Guidi <guidi.luca@gmail.com>2008-07-07 22:46:16 +0200
committerLuca Guidi <guidi.luca@gmail.com>2008-07-07 22:46:16 +0200
commit826c3db42105518b3a88cf56e348b48c1660f850 (patch)
treeeba237426eab94405720b5ac91a405fbdbdac433 /activerecord/lib/active_record/validations.rb
parent84816ae981a8598e5e401eb1b9b805de840fefc9 (diff)
downloadrails-826c3db42105518b3a88cf56e348b48c1660f850.tar.gz
rails-826c3db42105518b3a88cf56e348b48c1660f850.tar.bz2
rails-826c3db42105518b3a88cf56e348b48c1660f850.zip
Updated ActiveRecord::Errors#default_error_messages deprecation warning according to i18n changes
Diffstat (limited to 'activerecord/lib/active_record/validations.rb')
-rwxr-xr-xactiverecord/lib/active_record/validations.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/validations.rb b/activerecord/lib/active_record/validations.rb
index a328c4d927..83d55f23ea 100755
--- a/activerecord/lib/active_record/validations.rb
+++ b/activerecord/lib/active_record/validations.rb
@@ -21,7 +21,7 @@ module ActiveRecord
class << self
def default_error_messages
- ActiveSupport::Deprecation.warn("ActiveRecord::Errors.default_error_messages has been deprecated. Please use 'active_record.error_messages'.t.")
+ ActiveSupport::Deprecation.warn("ActiveRecord::Errors.default_error_messages has been deprecated. Please use I18n.translate('active_record.error_messages').")
I18n.translate 'active_record.error_messages'
end
end