devise

https://github.com/plataformatec/devise

Ruby

Flexible authentication solution for Rails with Warden.

Devise::Models::Confirmable#confirm

Confirm a user by setting it's confirmed_at to actual time. If the user
is already confirmed, add an error to email field. If the user is invalid
add errors

Source | Google | Stack overflow

Edit

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

cd devise

open lib/devise/models/confirmable.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Devise--Models--Confirmable-confirm-for-pr


# Commit to git

git add lib/devise/models/confirmable.rbgit commit -m "better docs for Devise::Models::Confirmable#confirm"


# 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--Confirmable-confirm-for-pr

hub pull-request


# Celebrate!