devise
https://github.com/plataformatec/devise
Ruby
Flexible authentication solution for Rails with Warden.
Devise::Models::Validatable#password_required?
Checks whether a password is needed or not. For validations only. Passwords are always required if it's a new record, or if the password or confirmation are being set somewhere.
Edit
git clone [email protected]:plataformatec/devise.git
cd devise
open lib/devise/models/validatable.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Devise--Models--Validatable-password_required--for-pr
# Commit to gitgit add lib/devise/models/validatable.rbgit commit -m "better docs for Devise::Models::Validatable#password_required?"
# 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--Validatable-password_required--for-pr
hub pull-request
# Celebrate!