Browse files

Updated ActiveRecord::Errors#default_error_messages deprecation warni…

…ng according to i18n changes
  • Loading branch information...
1 parent 84816ae commit 826c3db42105518b3a88cf56e348b48c1660f850 Luca Guidi committed Jul 7, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/validations.rb
View
2 activerecord/lib/active_record/validations.rb
@@ -21,7 +21,7 @@ class Errors
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

0 comments on commit 826c3db

Please sign in to comment.