diff options
author | José Valim <jose.valim@gmail.com> | 2010-01-13 00:41:04 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-01-13 01:19:23 +0100 |
commit | da5978c22374b8a3b15a421ff4920e0940435253 (patch) | |
tree | e9a94394f0ce7455cd0f955ede80e0b5f5f573b0 /activerecord/test/cases | |
parent | 8d78a82d797bf8809acb1d2ebb30cf81488ac99c (diff) | |
download | rails-da5978c22374b8a3b15a421ff4920e0940435253.tar.gz rails-da5978c22374b8a3b15a421ff4920e0940435253.tar.bz2 rails-da5978c22374b8a3b15a421ff4920e0940435253.zip |
Add subscriber for ActionPack and move all logging inside it.
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/subscriber_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/subscriber_test.rb b/activerecord/test/cases/subscriber_test.rb index f569d64ee5..699edbeb76 100644 --- a/activerecord/test/cases/subscriber_test.rb +++ b/activerecord/test/cases/subscriber_test.rb @@ -6,7 +6,7 @@ require "active_record/railties/subscriber" module SubscriberTest Rails::Subscriber.add(:active_record, ActiveRecord::Railties::Subscriber.new) - def super + def setup @old_logger = ActiveRecord::Base.logger super end @@ -17,7 +17,7 @@ module SubscriberTest end def set_logger(logger) - ActiveRecord::Base.logger = @logger + ActiveRecord::Base.logger = logger end def test_basic_query_logging |