devise
https://github.com/plataformatec/devise
Ruby
Flexible authentication solution for Rails with Warden.
Devise::Models::Confirmable#active_for_authentication?
Overwrites active_for_authentication? for confirmation by verifying whether a user is active to sign in or not. If the user is already confirmed, it should never be blocked. Otherwise we need to calculate if the confirm time has not expired for this user.
Edit
git clone [email protected]:plataformatec/devise.git
cd devise
open lib/devise/models/confirmable.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Devise--Models--Confirmable-active_for_authentication--for-pr
# Commit to gitgit add lib/devise/models/confirmable.rbgit commit -m "better docs for Devise::Models::Confirmable#active_for_authentication?"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Devise--Models--Confirmable-active_for_authentication--for-pr
hub pull-request
# Celebrate!