Sha256: 6a8986d190b886c0cde037792293d33271d0241f6bcb8ec3a0f18cf5b95ab1fb

Contents?: true

Size: 231 Bytes

Versions: 10

Compression:

Stored size: 231 Bytes

Contents

class SessionsController < Devise::SessionsController
  before_action :store_location, :only => [:new]

  def store_location
    session["user_redirect_to"] = request.referer unless request.referer =~ /\/users\/sign_in/
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
houston-core-0.9.2 app/controllers/sessions_controller.rb
houston-core-0.9.1 app/controllers/sessions_controller.rb
houston-core-0.9.0 app/controllers/sessions_controller.rb
houston-core-0.9.0.rc1 app/controllers/sessions_controller.rb
houston-core-0.8.4 app/controllers/sessions_controller.rb
houston-core-0.8.3 app/controllers/sessions_controller.rb
houston-core-0.8.2 app/controllers/sessions_controller.rb
houston-core-0.8.1 app/controllers/sessions_controller.rb
houston-core-0.8.0 app/controllers/sessions_controller.rb
houston-core-0.8.0.pre2 app/controllers/sessions_controller.rb