diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2009-12-24 15:24:57 -0800 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2009-12-24 15:24:57 -0800 |
commit | 38af368360ab35600ef69b21d85ae9604e6ebb22 (patch) | |
tree | ce198e83d0523584f7def682bff537c9893e0099 /actionpack/lib/action_controller/notifications.rb | |
parent | 2b7256a42e63640d6e94fe80ee67093ed0f06e4c (diff) | |
parent | 46b376962f064077734773c7e1eea5881e5d5696 (diff) | |
download | rails-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.rb | 10 |
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 |