Module: Searchkick::ControllerRuntime::ClassMethods

Defined in:
lib/searchkick/logging.rb

Instance Method Summary collapse

Instance Method Details

#log_process_action(payload) ⇒ Object


170
171
172
173
174
175
# File 'lib/searchkick/logging.rb', line 170

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