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

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

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.