Module: Datapathy::Railties::ControllerRuntime::ClassMethods

Defined in:
lib/datapathy/railtie.rb

Instance Method Summary collapse

Instance Method Details

#log_process_action(payload) ⇒ Object



37
38
39
40
41
# File 'lib/datapathy/railtie.rb', line 37

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