Class: ApplicationBaseController

Inherits:
ActionController::Base
  • Object
show all
Includes:
CommonEngine::FullcalendarUtility, CommonEngine::ZoomUtility
Defined in:
app/controllers/application_base_controller.rb

Constant Summary collapse

SELECT_LANGUAGE_MESSAGE =
'Select Language'.freeze

Constants included from CommonEngine::ZoomUtility

CommonEngine::ZoomUtility::ZOOM_DATETIME_FORMAT, CommonEngine::ZoomUtility::ZOOM_DURATION, CommonEngine::ZoomUtility::ZOOM_PASSWORD, CommonEngine::ZoomUtility::ZOOM_USER_LAST_NAME

Instance Method Summary collapse

Methods included from CommonEngine::ZoomUtility

#create_meeting, #create_zoom_user, #delete_zoom_user

Methods included from CommonEngine::FullcalendarUtility

#prepare_fullcalendar

Instance Method Details

#handle_404(exception = nil) ⇒ Object



27
28
29
30
# File 'app/controllers/application_base_controller.rb', line 27

def handle_404(exception = nil)
  logger.warn exception.message if exception
  render_error 404
end

#handle_500(exception = nil) ⇒ Object



23
24
25
26
# File 'app/controllers/application_base_controller.rb', line 23

def handle_500(exception = nil)
  logger.error exception.message if exception
  render_error 500
end

#handle_500_fatal(exception = nil) ⇒ Object



19
20
21
22
# File 'app/controllers/application_base_controller.rb', line 19

def handle_500_fatal(exception = nil)
  logger.fatal exception.message if exception
  render_error 500
end

#handle_uncatchableObject

called from config/initializers/application_controller_renderer.rb



32
33
34
35
36
37
# File 'app/controllers/application_base_controller.rb', line 32

def handle_uncatchable
  logger.error "Requested: #{request.env['action_dispatch.original_path']}"
  logger.error request.env['action_dispatch.exception']
  status = request.path[1..-1].to_i
  render_error 500
end