Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

bind method is not needed, so goodbye! <3 <3 <3

  • Loading branch information...
commit 2cbef6996c41c785a626291ce29b934797359fd2 1 parent 3870366
@tenderlove tenderlove authored
View
2  activesupport/lib/active_support/notifications.rb
@@ -65,7 +65,7 @@ def publish(*args)
end
def subscribe(pattern = nil, &block)
- @queue.bind(pattern).subscribe(&block)
+ @queue.subscribe(pattern, &block)
end
def unsubscribe(subscriber)
View
8 activesupport/lib/active_support/notifications/fanout.rb
@@ -6,15 +6,9 @@ class Fanout
def initialize
@subscribers = []
@listeners_for = {}
- @pattern = nil
end
- def bind(pattern)
- @pattern = pattern
- self
- end
-
- def subscribe(pattern = @pattern, &block)
+ def subscribe(pattern = nil, &block)
@listeners_for.clear
@subscribers << Subscriber.new(pattern, &block)
@subscribers.last
Please sign in to comment.
Something went wrong with that request. Please try again.