Permalink
Browse files

add human_name and value to ar validation #generate_message

  • Loading branch information...
Sven Fuchs
Sven Fuchs committed Aug 20, 2008
1 parent e2b1916 commit a6a62004c93d792c230d80f8a65da0bb45cb369f
@@ -39,8 +39,8 @@ def test_translated_model_names_with_sti_fallback
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 @@ def populate(&block)
# 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.

0 comments on commit a6a6200

Please sign in to comment.