mirror of
https://github.com/github/rails.git
synced 2026-01-27 07:17:58 -05:00
add human_name and value to ar validation #generate_message
This commit is contained in:
@@ -39,8 +39,8 @@ class ActiveRecordI18nTests < Test::Unit::TestCase
|
||||
end
|
||||
|
||||
private
|
||||
def reset_translations
|
||||
I18n.backend.send(:class_variable_set, :@@translations, {})
|
||||
end
|
||||
def reset_translations
|
||||
I18n.backend = I18n::Backend::Simple.new
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ module I18n
|
||||
# files which are either named *.rb and contain plain Ruby Hashes or are
|
||||
# named *.yml and contain YAML data.)
|
||||
def load_translations(*args)
|
||||
backend.load_translations *args
|
||||
backend.load_translations(*args)
|
||||
end
|
||||
|
||||
# Stores translations for the given locale in the backend.
|
||||
|
||||
Reference in New Issue
Block a user