Class: Members::SessionsController

Inherits:
Devise::SessionsController
  • Object
show all
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 (resource_or_scope)
  stored_location_for(resource_or_scope) || session.delete(:continue) || signed_in_root_path(resource_or_scope)
end

#newObject



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