wrap()
Perform the work in the supplied block as an execution.
# File activesupport/lib/active_support/execution_wrapper.rb, line 80 def self.wrap return yield if active? instance = run! begin yield ensure instance.complete! end end