devise
https://github.com/plataformatec/devise
Ruby
Flexible authentication solution for Rails with Warden.
Devise::Models::Rememberable#forget_me!
If the record is persisted, remove the remember token (but only if it exists), and save the record without validations.
Edit
git clone [email protected]:plataformatec/devise.git
cd devise
open lib/devise/models/rememberable.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Devise--Models--Rememberable-forget_me--for-pr
# Commit to gitgit add lib/devise/models/rememberable.rbgit commit -m "better docs for Devise::Models::Rememberable#forget_me!"
# 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--Rememberable-forget_me--for-pr
hub pull-request
# Celebrate!