Module: Actions::ErrorHandling
- Defined in:
- lib/actions/action/error_handling.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/actions/action/error_handling.rb', line 6 def call super context.called!(self) context rescue Actions::Errors::Failure context.rollback! return context rescue context.rollback! raise end |