devise

https://github.com/plataformatec/devise

Ruby

Flexible authentication solution for Rails with Warden.

Devise::FailureApp#store_location!

Stores requested uri to redirect the user after signing in. We cannot use
scoped session provided by warden here, since the user is not authenticated
yet, but we still need to store the uri based on scope, so different scopes
would never use the same uri to redirect.

Source | Google | Stack overflow

Edit

git clone [email protected]:plataformatec/devise.git

cd devise

open lib/devise/failure_app.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Devise--FailureApp-store_location--for-pr


# Commit to git

git add lib/devise/failure_app.rbgit commit -m "better docs for Devise::FailureApp#store_location!"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Devise--FailureApp-store_location--for-pr

hub pull-request


# Celebrate!