diff options
author | Sven Fuchs <svenfuchs@artweb-design.de> | 2008-08-20 17:51:42 +0200 |
---|---|---|
committer | Sven Fuchs <svenfuchs@artweb-design.de> | 2008-08-20 17:51:42 +0200 |
commit | a6a62004c93d792c230d80f8a65da0bb45cb369f (patch) | |
tree | c022a5462e8f24ee5e9d0ee9a962c50049dae61a /activerecord | |
parent | e2b191681e1c8c8b4344f1fc755e48fccdd1d603 (diff) | |
download | rails-a6a62004c93d792c230d80f8a65da0bb45cb369f.tar.gz rails-a6a62004c93d792c230d80f8a65da0bb45cb369f.tar.bz2 rails-a6a62004c93d792c230d80f8a65da0bb45cb369f.zip |
add human_name and value to ar validation #generate_message
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/i18n_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/test/cases/i18n_test.rb b/activerecord/test/cases/i18n_test.rb index 3527644f0d..06036733f5 100644 --- a/activerecord/test/cases/i18n_test.rb +++ b/activerecord/test/cases/i18n_test.rb @@ -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 |