Module: MassiveRecord::Rails::ControllerRuntime::ClassMethods

Defined in:
lib/massive_record/rails/controller_runtime.rb

Instance Method Summary collapse

Instance Method Details

#log_process_action(payload) ⇒ Object



47
48
49
50
51
# File 'lib/massive_record/rails/controller_runtime.rb', line 47

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