Module: ActiveRecord::Railties::ControllerRuntime::ClassMethods

Defined in:
lib/active_record/railties/controller_runtime.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#log_process_action(payload) ⇒ Object



46
47
48
49
50
# File 'lib/active_record/railties/controller_runtime.rb', line 46

def log_process_action(payload)
  messages, db_runtime = super, payload[:db_runtime]
  messages << ("ActiveRecord: %.1fms" % db_runtime.to_f) if db_runtime
  messages
end