Class: Members::SessionsController
- Inherits:
-
Devise::SessionsController
- Object
- Devise::SessionsController
- Members::SessionsController
- Defined in:
- app/controllers/members/sessions_controller.rb
Instance Method Summary collapse
Instance Method Details
#after_sign_in_path_for(resource_or_scope) ⇒ Object
11 12 13 |
# File 'app/controllers/members/sessions_controller.rb', line 11 def after_sign_in_path_for(resource_or_scope) stored_location_for(resource_or_scope) || session.delete(:continue) || signed_in_root_path(resource_or_scope) end |
#new ⇒ Object
4 5 6 7 8 9 |
# File 'app/controllers/members/sessions_controller.rb', line 4 def new # Store the referrer so we can send them back # where they started after successful sign in. session[:continue] = request.referrer super end |