Module: ActiveRecord::Railties::ControllerRuntime::ClassMethods

Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/railties/controller_runtime.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#log_process_action(payload) ⇒ Object



12
13
14
15
16
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/railties/controller_runtime.rb', line 12

def log_process_action(payload)
  messages, db_runtime = super, payload[:db_runtime]
  messages << ("ActiveRecord: %.1fms" % db_runtime.to_f) if db_runtime
  messages
end