Sha256: 55a7a810c94ac525edb67f8b5ab33741bc2df7a4612e1f3ac874543131f642c8

Contents?: true

Size: 430 Bytes

Versions: 7

Compression:

Stored size: 430 Bytes

Contents

class Members::SessionsController < Devise::SessionsController
  layout 'devise_layout'

  def new
    # Store the referrer so we can send them back
    # where they started after successful sign in.
    session[:continue] = request.referrer
    super
  end

  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
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
artfully_ose-1.2.0 app/controllers/members/sessions_controller.rb
artfully_ose-1.2.0.beta.1 app/controllers/members/sessions_controller.rb
artfully_ose-1.2.0.alpha.2 app/controllers/members/sessions_controller.rb
artfully_ose-1.2.0.alpha.1 app/controllers/members/sessions_controller.rb
artfully_ose-1.2.0.pre.27 app/controllers/members/sessions_controller.rb
artfully_ose-1.2.0.pre.26 app/controllers/members/sessions_controller.rb
artfully_ose-1.2.0.pre.24 app/controllers/members/sessions_controller.rb