devise

https://github.com/plataformatec/devise

Ruby

Flexible authentication solution for Rails with Warden.

Devise::Models::Lockable#active_for_authentication?

Overwrites active_for_authentication? from Devise::Models::Activatable for locking purposes
by verifying whether a user is active to sign in or not based on locked?

Source | Google | Stack overflow

Edit

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

cd devise

open lib/devise/models/lockable.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Devise--Models--Lockable-active_for_authentication--for-pr


# Commit to git

git add lib/devise/models/lockable.rbgit commit -m "better docs for Devise::Models::Lockable#active_for_authentication?"


# 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--Models--Lockable-active_for_authentication--for-pr

hub pull-request


# Celebrate!