Module: Sunspot::Rails::Railties::ControllerRuntime::ClassMethods

Defined in:
lib/sunspot/rails/railties/controller_runtime.rb

Instance Method Summary collapse

Instance Method Details

#log_process_action(payload) ⇒ Object



27
28
29
30
31
# File 'lib/sunspot/rails/railties/controller_runtime.rb', line 27

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