Module: CardController::Errors::Rescue
- Included in:
- CardController
- Defined in:
- lib/card_controller/errors.rb
Overview
controller class method to handle top-level error rescuing
Instance Method Summary collapse
Instance Method Details
#rescue_all? ⇒ Boolean
13 14 15 |
# File 'lib/card_controller/errors.rb', line 13 def rescue_all? Cardio.config.rescue_all_in_controller end |
#rescue_from_class(*klasses) ⇒ Object
7 8 9 10 11 |
# File 'lib/card_controller/errors.rb', line 7 def rescue_from_class *klasses klasses.each do |klass| rescue_from(klass) { |exception| handle_exception exception } end end |