Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated ActiveRecord::Errors#default_error_messages deprecation warni…

…ng according to i18n changes
  • Loading branch information...
commit 826c3db42105518b3a88cf56e348b48c1660f850 1 parent 84816ae
Luca Guidi authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/lib/active_record/validations.rb
2  activerecord/lib/active_record/validations.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.