aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorKarunakar (Ruby) <revurikarna@gmail.com>2011-12-21 19:30:45 +0530
committerKarunakar (Ruby) <revurikarna@gmail.com>2011-12-21 19:30:45 +0530
commitf7d3db71fcfb75002741e6b0f8f468519b9a4458 (patch)
tree69384764482730d28cf9fb6f9d3ad6a8966efbeb /activemodel
parent618cb4429191290b957391c314a55b4d59f381f3 (diff)
downloadrails-f7d3db71fcfb75002741e6b0f8f468519b9a4458.tar.gz
rails-f7d3db71fcfb75002741e6b0f8f468519b9a4458.tar.bz2
rails-f7d3db71fcfb75002741e6b0f8f468519b9a4458.zip
removed deprecated loggers
Diffstat (limited to 'activemodel')
-rw-r--r--activemodel/test/cases/mass_assignment_security/sanitizer_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/test/cases/mass_assignment_security/sanitizer_test.rb b/activemodel/test/cases/mass_assignment_security/sanitizer_test.rb
index 676937b5e1..85e6916d14 100644
--- a/activemodel/test/cases/mass_assignment_security/sanitizer_test.rb
+++ b/activemodel/test/cases/mass_assignment_security/sanitizer_test.rb
@@ -28,7 +28,7 @@ class SanitizerTest < ActiveModel::TestCase
test "debug mass assignment removal with LoggerSanitizer" do
original_attributes = { 'first_name' => 'allowed', 'admin' => 'denied' }
log = StringIO.new
- self.logger = Logger.new(log)
+ self.logger = ActiveSupport::Logger.new(log)
@logger_sanitizer.sanitize(original_attributes, @authorizer)
assert_match(/admin/, log.string, "Should log removed attributes: #{log.string}")
end