aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/notifications
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/lib/active_support/notifications')
-rw-r--r--activesupport/lib/active_support/notifications/fanout.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/notifications/fanout.rb b/activesupport/lib/active_support/notifications/fanout.rb
index 3bbb9cca44..526ca26764 100644
--- a/activesupport/lib/active_support/notifications/fanout.rb
+++ b/activesupport/lib/active_support/notifications/fanout.rb
@@ -38,9 +38,9 @@ module ActiveSupport
@delegate = delegate
end
- def publish(*args)
- return unless subscribed_to?(args.first)
- @delegate.call(*args)
+ def publish(message, *args)
+ return unless subscribed_to?(message)
+ @delegate.call(message, *args)
true
end