Class: AutomaticlogoutController

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

Instance Method Summary collapse

Instance Method Details

#destroyObject



2
3
4
5
6
7
8
# File 'app/controllers/automaticlogout_controller.rb', line 2

def destroy
  session[:devise_autl_seconds] = nil
  session[:live] = !current_user.nil?
  reset_session

  redirect_to '/', notice: session[:devise_autl_message]
end