Class: ExceptionHandler::ExceptionController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/exception_handler/exception_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject

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