Skip to content

Instantly share code, notes, and snippets.

@rubytastic
Created February 10, 2013 23:04
Show Gist options
  • Save rubytastic/4751439 to your computer and use it in GitHub Desktop.
Save rubytastic/4751439 to your computer and use it in GitHub Desktop.
(gem) activesupport-3.2.11/lib/active_support/notifications/instrumenter.rb
18
19 begin
20 yield
21 rescue Exception => e
22 payload[:exception] = [e.class.name, e.message]
23 raise e
24 ensure
25 @notifier.publish(name, started, Time.now, @id, payload)
26 end
27 end
28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment