From f921ad5c97048c692859b395bc78245a343bf833 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Wed, 13 Jan 2010 23:19:11 +0100 Subject: Tidy up ActiveRecord and Views runtime information on process action logger. --- activerecord/lib/active_record/railties/controller_runtime.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'activerecord/lib/active_record/railties') diff --git a/activerecord/lib/active_record/railties/controller_runtime.rb b/activerecord/lib/active_record/railties/controller_runtime.rb index 535e967ec3..a4f4e15c2e 100644 --- a/activerecord/lib/active_record/railties/controller_runtime.rb +++ b/activerecord/lib/active_record/railties/controller_runtime.rb @@ -21,9 +21,9 @@ module ActiveRecord module ClassMethods def log_process_action(controller) - super - db_runtime = controller.send :db_runtime - logger.info(" ActiveRecord runtime: %.1fms" % db_runtime.to_f) if db_runtime + messages, db_runtime = super, controller.send(:db_runtime) + messages << ("ActiveRecord: %.1fms" % db_runtime.to_f) if db_runtime + messages end end end -- cgit v1.2.3