123456789_123456789_123456789_123456789_123456789_

Module: Mongoid::Railties::ControllerRuntime::ControllerExtension::ClassMethods

Relationships & Source Files
Defined in: lib/mongoid/railties/controller_runtime.rb

Instance Method Summary

Instance Method Details

#log_process_action(payload)

Append MongoDB runtime information to ActionController runtime log message.

[ GitHub ]

  
# File 'lib/mongoid/railties/controller_runtime.rb', line 44

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