aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/notifications.rb
diff options
context:
space:
mode:
authorCarlhuda <carlhuda@engineyard.com>2009-12-23 17:01:07 -0800
committerCarlhuda <carlhuda@engineyard.com>2009-12-23 17:23:29 -0800
commitd2bd71a145ddc5e3e3750edc9a09eab742aaf02a (patch)
treeda4a935d5d161090373aae6593453d910101c1c6 /actionpack/lib/action_controller/notifications.rb
parent61af34b001b295af36c346d245a65d74de0e1f97 (diff)
downloadrails-d2bd71a145ddc5e3e3750edc9a09eab742aaf02a.tar.gz
rails-d2bd71a145ddc5e3e3750edc9a09eab742aaf02a.tar.bz2
rails-d2bd71a145ddc5e3e3750edc9a09eab742aaf02a.zip
Finish moving config.frameworks-dependent code to the framework plugin
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