aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/notifications.rb
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2013-04-13 17:08:00 +0200
committerXavier Noria <fxn@hashref.com>2013-04-13 17:09:13 +0200
commite5ef3abdd2336c34cd853a1f845f79b8b19fbb1b (patch)
tree4292b3e79af5217e39ea84b56160a805e57f5aa7 /activesupport/lib/active_support/notifications.rb
parent67bb49b69e1f10c2b35a53a645ed98a028375f1d (diff)
downloadrails-e5ef3abdd2336c34cd853a1f845f79b8b19fbb1b.tar.gz
rails-e5ef3abdd2336c34cd853a1f845f79b8b19fbb1b.tar.bz2
rails-e5ef3abdd2336c34cd853a1f845f79b8b19fbb1b.zip
hides the per thread registry instance, and caches singleton methods
Existing code was delegating to the instance with delegate macro calls, or invoking the instance method to reach the object and call its instance methods. But the point is to have a clean class-level interface where the thread local instance is hidden in the implementation. References #11c6973. References #10198.
Diffstat (limited to 'activesupport/lib/active_support/notifications.rb')
-rw-r--r--activesupport/lib/active_support/notifications.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/activesupport/lib/active_support/notifications.rb b/activesupport/lib/active_support/notifications.rb
index 5c985601f4..c45358bba9 100644
--- a/activesupport/lib/active_support/notifications.rb
+++ b/activesupport/lib/active_support/notifications.rb
@@ -193,10 +193,6 @@ module ActiveSupport
class InstrumentationRegistry # :nodoc:
extend ActiveSupport::PerThreadRegistry
- class << self
- delegate :instrumenter_for, to: :instance
- end
-
def initialize
@registry = {}
end