Module: SqlQueryStats::ControllerRuntime::ClassMethods
- Defined in:
- lib/sql_query_stats/controller_runtime.rb
Overview
Add QueryStats to the Rails Process Action log
Instance Method Summary collapse
Instance Method Details
#log_process_action(payload) ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/sql_query_stats/controller_runtime.rb', line 20 def log_process_action(payload) = super exclusions = i[total_duration] stats = payload[:sql_query_stats].with_indifferent_access stats.except(*exclusions).each do |stat, value| << (stat, value) end end |