aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/notifications.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_controller/notifications.rb')
-rw-r--r--actionpack/lib/action_controller/notifications.rb10
1 files changed, 0 insertions, 10 deletions
diff --git a/actionpack/lib/action_controller/notifications.rb b/actionpack/lib/action_controller/notifications.rb
deleted file mode 100644
index 1a4f29e0e2..0000000000
--- a/actionpack/lib/action_controller/notifications.rb
+++ /dev/null
@@ -1,10 +0,0 @@
-require 'active_support/notifications'
-
-ActiveSupport::Notifications.subscribe(/(read|write|cache|expire|exist)_(fragment|page)\??/) do |*args|
- event = ActiveSupport::Notifications::Event.new(*args)
-
- if logger = ActionController::Base.logger
- human_name = event.name.to_s.humanize
- logger.info("#{human_name} (%.1fms)" % event.duration)
- end
-end