Module: ActiveRecord::Railties::ControllerRuntime::ClassMethods
- Defined in:
- activerecord/lib/active_record/railties/controller_runtime.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#log_process_action(payload) ⇒ Object
42 43 44 45 46 |
# File 'activerecord/lib/active_record/railties/controller_runtime.rb', line 42 def log_process_action(payload) , db_runtime = super, payload[:db_runtime] << ("ActiveRecord: %.1fms" % db_runtime.to_f) if db_runtime end |