Module: Insales::Controller::SessionActions
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/insales/controller/session_actions.rb
Instance Method Summary collapse
Instance Method Details
#autologin ⇒ Object
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 || insales_success_login_path else redirect_to action: :new end end |
#create ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/insales/controller/session_actions.rb', line 13 def create account = find_account_by_request return render_not_found unless account store_location(insales_success_login_path) insales_autologin_start(account) end |
#destroy ⇒ Object
29 30 31 32 |
# File 'lib/insales/controller/session_actions.rb', line 29 def destroy insales_logout redirect_to action: :new end |
#new ⇒ Object
9 10 11 |
# File 'lib/insales/controller/session_actions.rb', line 9 def new # render end |