aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/railties/controller_runtime.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-07-25 11:11:23 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-07-25 11:11:23 -0700
commitb7e0408ca922cf51228818edbfdcd5c63e3cb84e (patch)
tree0313ba10f8f42720b03b51fabc992d84c425d8cb /activerecord/lib/active_record/railties/controller_runtime.rb
parentd02f2d2fb213584ce52a231063c948def856f657 (diff)
downloadrails-b7e0408ca922cf51228818edbfdcd5c63e3cb84e.tar.gz
rails-b7e0408ca922cf51228818edbfdcd5c63e3cb84e.tar.bz2
rails-b7e0408ca922cf51228818edbfdcd5c63e3cb84e.zip
use a hash to collect optional statistics about the instrumentation
Diffstat (limited to 'activerecord/lib/active_record/railties/controller_runtime.rb')
-rw-r--r--activerecord/lib/active_record/railties/controller_runtime.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/railties/controller_runtime.rb b/activerecord/lib/active_record/railties/controller_runtime.rb
index bc6ca936c0..aed1c59b00 100644
--- a/activerecord/lib/active_record/railties/controller_runtime.rb
+++ b/activerecord/lib/active_record/railties/controller_runtime.rb
@@ -11,9 +11,9 @@ module ActiveRecord
def cleanup_view_runtime
if ActiveRecord::Base.connected?
- db_rt_before_render = ActiveRecord::LogSubscriber.reset_runtime
+ db_rt_before_render = ActiveRecord::Base.connection.reset_runtime
runtime = super
- db_rt_after_render = ActiveRecord::LogSubscriber.reset_runtime
+ db_rt_after_render = ActiveRecord::Base.connection.reset_runtime
self.db_runtime = db_rt_before_render + db_rt_after_render
runtime - db_rt_after_render
else