Module: RestApi::Railties::ControllerRuntime::ClassMethods

Defined in:
app/models/rest_api/railties/controller_runtime.rb

Instance Method Summary collapse

Instance Method Details

#log_process_action(payload) ⇒ Object



29
30
31
32
33
# File 'app/models/rest_api/railties/controller_runtime.rb', line 29

def log_process_action(payload)
  messages, runtime = super, payload[:ra_runtime]
  messages << ("OpenShift API: %.1fms" % runtime.to_f) if !runtime.nil? && runtime > 0
  messages
end