Module: Insales::Controller::SessionActions

Extended by:
ActiveSupport::Concern
Defined in:
lib/insales/controller/session_actions.rb

Instance Method Summary collapse

Instance Method Details

#autologinObject



21
22
23
24
25
26
27
# File 'lib/insales/controller/session_actions.rb', line 21

def autologin
  if insales_autologin_finish
    redirect_to stored_location || 
  else
    redirect_to action: :new
  end
end

#createObject



13
14
15
16
17
18
19
# File 'lib/insales/controller/session_actions.rb', line 13

def create
   = 
  return render_not_found unless 

  store_location()
  insales_autologin_start()
end

#destroyObject



29
30
31
32
# File 'lib/insales/controller/session_actions.rb', line 29

def destroy
  insales_logout
  redirect_to action: :new
end

#newObject



9
10
11
# File 'lib/insales/controller/session_actions.rb', line 9

def new
  # render
end