diff options
author | José Valim <jose.valim@gmail.com> | 2010-02-04 10:39:55 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-02-04 10:39:55 +0100 |
commit | 31248fe3698c8d6c54465dfdf463ea49749e1c33 (patch) | |
tree | 7012bd76a668d741689f9f5eee441f109584d590 /activesupport/lib/active_support/notifications/instrumenter.rb | |
parent | efa850558facf2fbaaf226f1444802da83924b82 (diff) | |
download | rails-31248fe3698c8d6c54465dfdf463ea49749e1c33.tar.gz rails-31248fe3698c8d6c54465dfdf463ea49749e1c33.tar.bz2 rails-31248fe3698c8d6c54465dfdf463ea49749e1c33.zip |
Remove instrument! and require thread from AS::Notifications.
Diffstat (limited to 'activesupport/lib/active_support/notifications/instrumenter.rb')
-rw-r--r-- | activesupport/lib/active_support/notifications/instrumenter.rb | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/activesupport/lib/active_support/notifications/instrumenter.rb b/activesupport/lib/active_support/notifications/instrumenter.rb index 7c5b118ee3..f3d877efe7 100644 --- a/activesupport/lib/active_support/notifications/instrumenter.rb +++ b/activesupport/lib/active_support/notifications/instrumenter.rb @@ -20,15 +20,6 @@ module ActiveSupport result end - # The same as instrument, but sends the notification even if the yielded - # block raises an error. - def instrument!(name, payload={}) - time = Time.now - yield(payload) if block_given? - ensure - @notifier.publish(name, time, Time.now, @id, payload) - end - private def unique_id SecureRandom.hex(10) |