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 /railties | |
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 'railties')
-rw-r--r-- | railties/lib/rails/subscriber/test_helper.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/railties/lib/rails/subscriber/test_helper.rb b/railties/lib/rails/subscriber/test_helper.rb index d8a8551a45..8b981dc3a6 100644 --- a/railties/lib/rails/subscriber/test_helper.rb +++ b/railties/lib/rails/subscriber/test_helper.rb @@ -1,5 +1,5 @@ -require 'rails' require 'rails/subscriber' +require 'active_support/notifications' module Rails class Subscriber @@ -101,6 +101,11 @@ module Rails def queue ActiveSupport::Notifications::Fanout.new(false) end + + def wait + sleep(0.01) + super + end end end end
\ No newline at end of file |