Module: Sequel::Railties::ControllerRuntime::ClassMethods
- Defined in:
- lib/sequel/railties/controller_runtime.rb
Instance Method Summary collapse
Instance Method Details
#log_process_action(payload) ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/sequel/railties/controller_runtime.rb', line 14 def log_process_action payload = super db_runtime = payload[:db_runtime] db_query_count = payload[:db_query_count] if db_runtime && db_query_count << (format "Sequel: %.1fms & %d queries", db_runtime.to_f, db_query_count) end end |