Module: Searchkick::ControllerRuntime::ClassMethods

Defined in:
lib/searchkick/logging.rb

Instance Method Summary collapse

Instance Method Details

#log_process_action(payload) ⇒ Object



229
230
231
232
233
234
# File 'lib/searchkick/logging.rb', line 229

def log_process_action(payload)
  messages = super
  runtime = payload[:searchkick_runtime]
  messages << ("Searchkick: %.1fms" % runtime.to_f) if runtime.to_f > 0
  messages
end