1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

add human_name and value to ar validation #generate_message

This commit is contained in:
Sven Fuchs 2008-08-20 17:51:42 +02:00
parent e2b191681e
commit a6a62004c9
2 changed files with 4 additions and 4 deletions

View file

@ -40,7 +40,7 @@ class ActiveRecordI18nTests < Test::Unit::TestCase
private
def reset_translations
I18n.backend.send(:class_variable_set, :@@translations, {})
I18n.backend = I18n::Backend::Simple.new
end
end

View file

@ -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.