Module: Sequel::Rails::Railties::ControllerRuntime::ClassMethods

Defined in:
lib/sequel/rails/railties/controller_runtime.rb

Instance Method Summary collapse

Instance Method Details

#log_process_action(payload) ⇒ Object



38
39
40
41
42
43
# File 'lib/sequel/rails/railties/controller_runtime.rb', line 38

def log_process_action(payload)
  messages = super
  messages << format("Database: %.1fms", payload[:db_runtime].to_f) if payload[:db_runtime]
  messages << format("Queries: %d", payload[:db_query_count].to_f) if payload[:db_query_count]
  messages
end