Class: ExceptionsController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- ExceptionsController
- Includes:
- App47Logger
- Defined in:
- app/controllers/exceptions_controller.rb
Overview
Capture the exception and give a nice screen to the user instead of a stack track looking one.
Instance Method Summary collapse
-
#show ⇒ Object
Show.
Methods included from App47Logger
clean_params, #clean_params, delete_parameter_keys, #log_controller_error, log_debug, #log_debug, log_error, #log_error, log_exception, #log_message, log_message, #log_warn, log_warn, mask_parameter_keys, #update_flash_messages
Instance Method Details
#show ⇒ Object
Show
14 15 16 17 |
# File 'app/controllers/exceptions_controller.rb', line 14 def show log_controller_error request.env['action_dispatch.exception'] @xhr = request.headers['HTTP_X_REQUESTED_WITH'].present? end |