Module: Searchkick::ControllerRuntime::ClassMethods

Defined in:
lib/searchkick/logging.rb

Instance Method Summary collapse

Instance Method Details

#log_process_action(payload) ⇒ Object



226
227
228
229
230
231
# File 'lib/searchkick/logging.rb', line 226

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