wrap()
Perform the work in the supplied block as an execution.
# File activesupport/lib/active_support/execution_wrapper.rb, line 84 def self.wrap return yield if active? instance = run! begin yield rescue => error error_reporter.report(error, handled: false) raise ensure instance.complete! end end