module RescueInteractor
Public Class Methods
included(base)
click to toggle source
# File vendor/rescue_interactor.rb, line 4 def self.included(base) base.include(Interactor) base.around do |interactor| begin interactor.call rescue Exception => exception context.fail!(error: exception) end end end