Class: ExceptionHandler::ExceptionController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ExceptionHandler::ExceptionController
- Defined in:
- app/controllers/exception_handler/exception_controller.rb
Instance Method Summary collapse
-
#show ⇒ Object
Show Amend responses in tests Need to test validity of JSON responses etc.
Instance Method Details
#show ⇒ Object
Show Amend responses in tests Need to test validity of JSON responses etc
22 23 24 25 |
# File 'app/controllers/exception_handler/exception_controller.rb', line 22 def show @exception = ExceptionHandler::Exception.new request #-> Service Object render status: @exception.status #-> Show apppropriate response end |