Module: SequelRails::Railties::ControllerRuntime::ClassMethods

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

Instance Method Summary collapse

Instance Method Details

#log_process_action(payload) ⇒ Object



37
38
39
40
41
42
# File 'lib/sequel_rails/railties/controller_runtime.rb', line 37

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