Module: Mongoid::Railties::ControllerRuntime::ControllerExtension::ClassMethods
Relationships & Source Files | |
Defined in: | lib/mongoid/railties/controller_runtime.rb |
Instance Method Summary
-
#log_process_action(payload)
Append MongoDB runtime information to ActionController runtime log message.
Instance Method Details
#log_process_action(payload)
Append MongoDB runtime information to ActionController runtime log message.
# File 'lib/mongoid/railties/controller_runtime.rb', line 44
def log_process_action(payload) = super mongoid_runtime = payload[:mongoid_runtime] << ("MongoDB: %.1fms" % mongoid_runtime.to_f) if mongoid_runtime end