Module: ActiveInteraction::Extras::Halt
- Extended by:
- ActiveSupport::Concern
- Included in:
- All
- Defined in:
- lib/active_interaction/extras/halt.rb
Instance Method Summary collapse
Instance Method Details
#halt! ⇒ Object
12 13 14 |
# File 'lib/active_interaction/extras/halt.rb', line 12 def halt! throw :strict_error, errors end |
#halt_if_errors! ⇒ Object
16 17 18 |
# File 'lib/active_interaction/extras/halt.rb', line 16 def halt_if_errors! halt! if errors.any? end |