aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/notifications
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-07-18 15:37:23 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-07-18 15:37:23 -0700
commit2cbef6996c41c785a626291ce29b934797359fd2 (patch)
treedeaa204cee54c8f1d9400d1b3753d6d8cae8cb10 /activesupport/lib/active_support/notifications
parent387036609268c4cf68401a1333715f2ee4aecffc (diff)
downloadrails-2cbef6996c41c785a626291ce29b934797359fd2.tar.gz
rails-2cbef6996c41c785a626291ce29b934797359fd2.tar.bz2
rails-2cbef6996c41c785a626291ce29b934797359fd2.zip
bind method is not needed, so goodbye! <3 <3 <3
Diffstat (limited to 'activesupport/lib/active_support/notifications')
-rw-r--r--activesupport/lib/active_support/notifications/fanout.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/activesupport/lib/active_support/notifications/fanout.rb b/activesupport/lib/active_support/notifications/fanout.rb
index 7eefb7f20a..48ccb156ae 100644
--- a/activesupport/lib/active_support/notifications/fanout.rb
+++ b/activesupport/lib/active_support/notifications/fanout.rb
@@ -6,15 +6,9 @@ module ActiveSupport
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