aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/notifications.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/lib/active_support/notifications.rb')
-rw-r--r--activesupport/lib/active_support/notifications.rb24
1 files changed, 1 insertions, 23 deletions
diff --git a/activesupport/lib/active_support/notifications.rb b/activesupport/lib/active_support/notifications.rb
index bb5f497c83..93d1907edc 100644
--- a/activesupport/lib/active_support/notifications.rb
+++ b/activesupport/lib/active_support/notifications.rb
@@ -47,34 +47,12 @@ module ActiveSupport
delegate :instrument, :to => :instrumenter
def notifier
- @notifier ||= Notifier.new
+ @notifier ||= Fanout.new
end
def instrumenter
Thread.current[:"instrumentation_#{notifier.object_id}"] ||= Instrumenter.new(notifier)
end
end
-
- class Notifier
- def initialize(queue = Fanout.new)
- @queue = queue
- end
-
- def publish(*args)
- @queue.publish(*args)
- end
-
- def subscribe(pattern = nil, &block)
- @queue.subscribe(pattern, &block)
- end
-
- def unsubscribe(subscriber)
- @queue.unsubscribe(subscriber)
- end
-
- def wait
- @queue.wait
- end
- end
end
end