Module: ActionController::Instrumentation::ClassMethods

Defined in:
lib/time_bandits/monkey_patches/action_controller.rb

Instance Method Summary collapse

Instance Method Details

#log_process_action(payload) ⇒ Object

patch to log rendering time with more precision



18
19
20
21
22
# File 'lib/time_bandits/monkey_patches/action_controller.rb', line 18

def log_process_action(payload) #:nodoc:
  messages, view_runtime = [], payload[:view_runtime]
  messages << ("Views: %.3fms" % view_runtime.to_f) if view_runtime
  messages
end