aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/notifications.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-01-13 22:28:18 +0100
committerJosé Valim <jose.valim@gmail.com>2010-01-14 01:07:03 +0100
commit7c3573f32757e9c4c6b6140499a3e7dfe2d335b1 (patch)
tree957230806ab62a1875a789c285337817cb610c79 /activesupport/lib/active_support/notifications.rb
parent2a6bc1263e99060897b53a8c806916d198eab572 (diff)
downloadrails-7c3573f32757e9c4c6b6140499a3e7dfe2d335b1.tar.gz
rails-7c3573f32757e9c4c6b6140499a3e7dfe2d335b1.tar.bz2
rails-7c3573f32757e9c4c6b6140499a3e7dfe2d335b1.zip
Add instrument! to notifications which adds the result to the payload.
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 3e96decb8c..a1383bb478 100644
--- a/activesupport/lib/active_support/notifications.rb
+++ b/activesupport/lib/active_support/notifications.rb
@@ -45,7 +45,7 @@ module ActiveSupport
class << self
attr_writer :notifier
delegate :publish, :subscribe, :to => :notifier
- delegate :instrument, :to => :instrumenter
+ delegate :instrument, :instrument!, :to => :instrumenter
def notifier
@notifier ||= Notifier.new