Module: ActionLogic::ActionBenchmark::ClassMethods

Defined in:
lib/action_logic/action_benchmark.rb

Instance Method Summary collapse

Instance Method Details

#with_benchmark(execution_context, &block) ⇒ Object



4
5
6
# File 'lib/action_logic/action_benchmark.rb', line 4

def with_benchmark(execution_context, &block)
  ActionLogic.benchmark? ? benchmark!(execution_context, &block) : block.call
end