public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
stop AR's debug.log filling with warnings about not being able to load fixture 
classes

[#1045 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
fcheung (author)
Sun Sep 14 12:40:09 -0700 2008
jeremy (committer)
Sun Sep 14 18:57:39 -0700 2008
commit  f636c6fda037fbef25e98c81d019a6c600a18f66
tree    472357c512eafe2083ba6ad8355f71c1a4a293da
parent  d51a39ff500d94ea4a81fbc22f0d1c540e83f4e1
...
46
47
48
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
...
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
0
@@ -46,3 +46,17 @@ end
0
 class << ActiveRecord::Base
0
   public :with_scope, :with_exclusive_scope
0
 end
0
+
0
+unless ENV['FIXTURE_DEBUG']
0
+  module Test #:nodoc:
0
+    module Unit #:nodoc:
0
+      class << TestCase #:nodoc:
0
+        def try_to_load_dependency_with_silence(*args)
0
+          ActiveRecord::Base.logger.silence { try_to_load_dependency_without_silence(*args)}
0
+        end
0
+
0
+        alias_method_chain :try_to_load_dependency, :silence
0
+      end
0
+    end
0
+  end
0
+end
0
\ No newline at end of file

Comments