devise

https://github.com/plataformatec/devise

Ruby

Flexible authentication solution for Rails with Warden.

Devise::SessionsController#verify_signed_out_user

Check if there is no signed in user before doing the sign out.

If there is no signed in user, it will set the flash message and redirect
to the after_sign_out path.

Source | Google | Stack overflow

Edit

git clone git@github.com:plataformatec/devise.git

cd devise

open app/controllers/devise/sessions_controller.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Devise--SessionsController-verify_signed_out_user-for-pr


# Commit to git

git add app/controllers/devise/sessions_controller.rbgit commit -m "better docs for Devise::SessionsController#verify_signed_out_user"


# 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--SessionsController-verify_signed_out_user-for-pr

hub pull-request


# Celebrate!