Class: Auth::EmployeeSessionsController

Inherits:
Devise::SessionsController
  • Object
show all
Includes:
Controllers::DeviseReturnable
Defined in:
app/controllers/auth/employee_sessions_controller.rb

Overview

Controller: employee sessions.

Constant Summary

Constants included from Controllers::DeviseReturnable

Controllers::DeviseReturnable::ALLOWED_REDIRECT_HOSTS

Instance Method Summary collapse

Methods included from Controllers::DeviseReturnable

#check_for_devise_return_path, #devise_return_path_from_omniauth_hash, #safe_referer

Instance Method Details

#after_sign_out_path_forString (protected)

Returns the sign-in path, wherever * (Devise's resource arg) points.

Returns:

  • (String)

    the sign-in path, wherever * (Devise's resource arg) points



31
32
33
34
# File 'app/controllers/auth/employee_sessions_controller.rb', line 31

def after_sign_out_path_for(*)
  # logger.debug "EmployeeSessionsController, after_sign_out_path_for"
  
end

#destroyvoid

This method returns an undefined value.

DELETE /employees/sign_out — signs the employee out, clearing OmniAuth
session data and switchboard presence before delegating to Devise.



22
23
24
25
26
# File 'app/controllers/auth/employee_sessions_controller.rb', line 22

def destroy
  session['devise.omniauth_data'] = nil
  AdminPresence.clear!(cookies)
  super
end