aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/notifications.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2009-12-24 15:24:57 -0800
committerDavid Heinemeier Hansson <david@loudthinking.com>2009-12-24 15:24:57 -0800
commit38af368360ab35600ef69b21d85ae9604e6ebb22 (patch)
treece198e83d0523584f7def682bff537c9893e0099 /actionpack/lib/action_controller/notifications.rb
parent2b7256a42e63640d6e94fe80ee67093ed0f06e4c (diff)
parent46b376962f064077734773c7e1eea5881e5d5696 (diff)
downloadrails-38af368360ab35600ef69b21d85ae9604e6ebb22.tar.gz
rails-38af368360ab35600ef69b21d85ae9604e6ebb22.tar.bz2
rails-38af368360ab35600ef69b21d85ae9604e6ebb22.zip
Merge
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