Module: ActionController::TimeBanditry::ClassMethods

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

Instance Method Summary collapse

Instance Method Details

#log_process_action(payload) ⇒ Object

:nodoc:



111
112
113
114
115
116
117
118
119
# File 'lib/time_bandits/monkey_patches/action_controller.rb', line 111

def log_process_action(payload) #:nodoc:
  # need to call this to compute DB time/calls
  TimeBandits.consumed
  messages = super
  TimeBandits.time_bandits.each do |bandit|
    messages << bandit.runtime
  end
  messages
end