Module: ActiveRecord::Railties::ControllerRuntime::ClassMethods
Do not use. This module is for internal use only.
Relationships & Source Files | |
Defined in: | activerecord/lib/active_record/railties/controller_runtime.rb |
Instance Method Summary
Instance Method Details
#log_process_action(payload)
[ GitHub ]# File 'activerecord/lib/active_record/railties/controller_runtime.rb', line 12
def log_process_action(payload) , db_runtime = super, payload[:db_runtime] if db_runtime queries_count = payload[:queries_count] || 0 cached_queries_count = payload[:cached_queries_count] || 0 << ("ActiveRecord: %.1fms (%d %s, %d cached)" % [db_runtime.to_f, queries_count, "query".pluralize(queries_count), cached_queries_count]) end end