Skip to content
This repository
Browse code

removed deprecated loggers

  • Loading branch information...
commit f7d3db71fcfb75002741e6b0f8f468519b9a4458 1 parent 618cb44
Karunakar (Ruby) authored December 21, 2011
2  activemodel/test/cases/mass_assignment_security/sanitizer_test.rb
@@ -28,7 +28,7 @@ def setup
28 28
   test "debug mass assignment removal with LoggerSanitizer" do
29 29
     original_attributes = { 'first_name' => 'allowed', 'admin' => 'denied' }
30 30
     log = StringIO.new
31  
-    self.logger = Logger.new(log)
  31
+    self.logger = ActiveSupport::Logger.new(log)
32 32
     @logger_sanitizer.sanitize(original_attributes, @authorizer)
33 33
     assert_match(/admin/, log.string, "Should log removed attributes: #{log.string}")
34 34
   end

0 notes on commit f7d3db7

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