aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorstopdropandrew <andrew@kongregate.com>2013-03-02 15:50:41 -0800
committerstopdropandrew <andrew@kongregate.com>2013-03-02 16:05:05 -0800
commita007800a552a9ab31c21134c2e716222268a1276 (patch)
tree46c6435e1a096c610d06d42c7584b72cdf9c23f9 /activesupport/lib
parent8fe904b5caf960bbc2bc04a11bb8d8fe53949587 (diff)
downloadrails-a007800a552a9ab31c21134c2e716222268a1276.tar.gz
rails-a007800a552a9ab31c21134c2e716222268a1276.tar.bz2
rails-a007800a552a9ab31c21134c2e716222268a1276.zip
ActiveSupport::Notifications::Instrumenter#instrument should yield
its payload the same way that ActiveSupport::Notifications does. Fix spelling in test name.
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/notifications/instrumenter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/notifications/instrumenter.rb b/activesupport/lib/active_support/notifications/instrumenter.rb
index 1ee7ca06bb..e0ae60e61f 100644
--- a/activesupport/lib/active_support/notifications/instrumenter.rb
+++ b/activesupport/lib/active_support/notifications/instrumenter.rb
@@ -17,7 +17,7 @@ module ActiveSupport
def instrument(name, payload={})
start name, payload
begin
- yield
+ yield payload
rescue Exception => e
payload[:exception] = [e.class.name, e.message]
raise e