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

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

Instance Method Summary (collapse)

Instance Method Details

- (Object) log_process_action(payload)



27
28
29
30
31
# File 'sunspot_rails/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