Module: Rails::DataMapper::Railties::ControllerRuntime::ClassMethods

Defined in:
lib/dm-rails/railties/controller_runtime.rb

Instance Method Summary collapse

Instance Method Details

#log_process_action(payload) ⇒ Object



33
34
35
36
37
# File 'lib/dm-rails/railties/controller_runtime.rb', line 33

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