diff options
-rw-r--r-- | activerecord/test/cases/log_subscriber_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/log_subscriber_test.rb b/activerecord/test/cases/log_subscriber_test.rb index 9e46de50d5..f3b94eb829 100644 --- a/activerecord/test/cases/log_subscriber_test.rb +++ b/activerecord/test/cases/log_subscriber_test.rb @@ -7,9 +7,9 @@ class LogSubscriberTest < ActiveSupport::TestCase include Rails::LogSubscriber::TestHelper def setup + @old_logger = ActiveRecord::Base.logger super - @old_logger = ActiveRecord::Base.logger Rails::LogSubscriber.add(:active_record, ActiveRecord::Railties::LogSubscriber.new) end |