diff options
author | Luca Guidi <guidi.luca@gmail.com> | 2008-07-07 22:46:16 +0200 |
---|---|---|
committer | Luca Guidi <guidi.luca@gmail.com> | 2008-07-07 22:46:16 +0200 |
commit | 826c3db42105518b3a88cf56e348b48c1660f850 (patch) | |
tree | eba237426eab94405720b5ac91a405fbdbdac433 | |
parent | 84816ae981a8598e5e401eb1b9b805de840fefc9 (diff) | |
download | rails-826c3db42105518b3a88cf56e348b48c1660f850.tar.gz rails-826c3db42105518b3a88cf56e348b48c1660f850.tar.bz2 rails-826c3db42105518b3a88cf56e348b48c1660f850.zip |
Updated ActiveRecord::Errors#default_error_messages deprecation warning according to i18n changes
-rwxr-xr-x | activerecord/lib/active_record/validations.rb | 2 |
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 |