devise

https://github.com/plataformatec/devise

Ruby

Flexible authentication solution for Rails with Warden.

Devise::Controllers::SignInOut#sign_out

Sign out a given user or scope. This helper is useful for signing out a user
after deleting accounts. Returns true if there was a logout and false if there
is no user logged in on the referred scope

Examples:

  sign_out :user     # sign_out(scope)
  sign_out @user     # sign_out(resource)

Source | Google | Stack overflow

Edit

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

cd devise

open lib/devise/controllers/sign_in_out.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Devise--Controllers--SignInOut-sign_out-for-pr


# Commit to git

git add lib/devise/controllers/sign_in_out.rbgit commit -m "better docs for Devise::Controllers::SignInOut#sign_out"


# 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--Controllers--SignInOut-sign_out-for-pr

hub pull-request


# Celebrate!