Method: CardController::Errors#handle_exception
- Defined in:
- lib/card_controller/errors.rb
#handle_exception(exception) ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/card_controller/errors.rb', line 18 def handle_exception exception raise exception if debug_exception?(exception) @card ||= Card.new error = Card::Error.report exception, card show error.class.view, error.class.status_code end |