Module: QueryCount::ControllerRuntime::ClassMethods
- Defined in:
- lib/query_count/controller_runtime.rb
Instance Method Summary collapse
Instance Method Details
#log_process_action(payload) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/query_count/controller_runtime.rb', line 7 def log_process_action(payload) = super count = payload[:query_count] || 0 count_cache = payload[:query_count_cache] || 0 .push( "SQL Queries: #{count + count_cache}"\ " (#{count_cache} cached)" ) end |