devise
https://github.com/plataformatec/devise
Ruby
Flexible authentication solution for Rails with Warden.
Devise::Models::Confirmable::ClassMethods#confirm_by_token
Find a user by its confirmation token and try to confirm it. If no user is found, returns a new user with an error. If the user is already confirmed, create an error for the user Options must have the confirmation_token
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--ClassMethods-confirm_by_token-for-pr
# Commit to gitgit add lib/devise/models/confirmable.rbgit commit -m "better docs for Devise::Models::Confirmable::ClassMethods#confirm_by_token"
# 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--ClassMethods-confirm_by_token-for-pr
hub pull-request
# Celebrate!