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.
Edit
git clone git@github.com:plataformatec/devise.git
cd devise
open app/controllers/devise/sessions_controller.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Devise--SessionsController-verify_signed_out_user-for-pr
# Commit to gitgit add app/controllers/devise/sessions_controller.rbgit commit -m "better docs for Devise::SessionsController#verify_signed_out_user"
# Open pull requestgem 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!