aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/notifications.rb
diff options
context:
space:
mode:
authorYehuda Katz <wycats@gmail.com>2009-10-27 21:01:31 -0700
committerYehuda Katz <wycats@gmail.com>2009-10-27 21:04:53 -0700
commitcbcb947b00a7c6992cfe42c6b369e87b4fa4ee23 (patch)
tree303df6f42810dc11a6dfd545c0740046ea07db6a /activesupport/lib/active_support/notifications.rb
parent9b67b7ba2f74067235c8bd8f9dc02fb6337eda52 (diff)
downloadrails-cbcb947b00a7c6992cfe42c6b369e87b4fa4ee23.tar.gz
rails-cbcb947b00a7c6992cfe42c6b369e87b4fa4ee23.tar.bz2
rails-cbcb947b00a7c6992cfe42c6b369e87b4fa4ee23.zip
AS::Notifications.subscribe blocks are now yielded the arguments to pass to AS::Notifications::Event.new
Diffstat (limited to 'activesupport/lib/active_support/notifications.rb')
-rw-r--r--activesupport/lib/active_support/notifications.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/notifications.rb b/activesupport/lib/active_support/notifications.rb
index 139c66b1e1..2cf91fc383 100644
--- a/activesupport/lib/active_support/notifications.rb
+++ b/activesupport/lib/active_support/notifications.rb
@@ -96,7 +96,7 @@ module ActiveSupport
def subscribe
@queue.subscribe(@pattern) do |*args|
- yield Event.new(*args)
+ yield *args
end
end
end