Class: ExceptionsController

Inherits:
ActionController::Base
  • Object
show all
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

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

#showObject

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