Module: Searchkick::ControllerRuntime::ClassMethods

Defined in:
lib/searchkick/controller_runtime.rb

Instance Method Summary collapse

Instance Method Details

#log_process_action(payload) ⇒ Object



32
33
34
35
36
37
# File 'lib/searchkick/controller_runtime.rb', line 32

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