Skip to content
This repository
Browse code

add human_name and value to ar validation #generate_message

  • Loading branch information...
commit a6a62004c93d792c230d80f8a65da0bb45cb369f 1 parent e2b1916
Sven Fuchs authored August 20, 2008
6  activerecord/test/cases/i18n_test.rb
@@ -39,8 +39,8 @@ def test_translated_model_names_with_sti_fallback
39 39
   end
40 40
 
41 41
   private
42  
-  def reset_translations
43  
-    I18n.backend.send(:class_variable_set, :@@translations, {})
44  
-  end
  42
+    def reset_translations
  43
+      I18n.backend = I18n::Backend::Simple.new
  44
+    end
45 45
 end
46 46
 
2  activesupport/lib/active_support/vendor/i18n-0.0.1/i18n.rb
@@ -63,7 +63,7 @@ def populate(&block)
63 63
     # files which are either named *.rb and contain plain Ruby Hashes or are
64 64
     # named *.yml and contain YAML data.)
65 65
     def load_translations(*args)
66  
-      backend.load_translations *args
  66
+      backend.load_translations(*args)
67 67
     end
68 68
     
69 69
     # Stores translations for the given locale in the backend. 

0 notes on commit a6a6200

Please sign in to comment.
Something went wrong with that request. Please try again.