diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-02-09 14:33:56 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-02-09 14:33:56 -0800 |
commit | 37efb517cb87c0894d8ecaa2066c5be6283f5450 (patch) | |
tree | dc5f9b72b15eead95621fd6bea3434e06c9b269d | |
parent | 3e02b3702ec640a521214109646bdebb5216bf96 (diff) | |
download | rails-37efb517cb87c0894d8ecaa2066c5be6283f5450.tar.gz rails-37efb517cb87c0894d8ecaa2066c5be6283f5450.tar.bz2 rails-37efb517cb87c0894d8ecaa2066c5be6283f5450.zip |
fanout unsubscribe only accepted one argument, so taking *args here is probably bad
-rw-r--r-- | activesupport/lib/active_support/notifications.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/notifications.rb b/activesupport/lib/active_support/notifications.rb index 30daf9dafc..77696eb1db 100644 --- a/activesupport/lib/active_support/notifications.rb +++ b/activesupport/lib/active_support/notifications.rb @@ -64,8 +64,8 @@ module ActiveSupport end end - def unsubscribe(*args) - notifier.unsubscribe(*args) + def unsubscribe(args) + notifier.unsubscribe(args) @instrumenters.clear end |