From d7536e610814beccb251cd89bd0ba909cf3e8ad8 Mon Sep 17 00:00:00 2001 From: Daniel Lopes Date: Tue, 13 Nov 2012 17:31:46 -0600 Subject: add details on password confirmation used with has_secure_password --- activemodel/lib/active_model/secure_password.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'activemodel/lib') diff --git a/activemodel/lib/active_model/secure_password.rb b/activemodel/lib/active_model/secure_password.rb index 4b328b399a..f19c836bea 100644 --- a/activemodel/lib/active_model/secure_password.rb +++ b/activemodel/lib/active_model/secure_password.rb @@ -11,6 +11,10 @@ module ActiveModel # you wish to turn off validations, pass validations: false as an # argument. You can add more validations by hand if need be. # + # If you don't need the confirmation validation, just don't set any + # value to the password_confirmation attribute and the the validation + # will not be triggered. + # # You need to add bcrypt-ruby (~> 3.0.0) to Gemfile to use #has_secure_password: # # gem 'bcrypt-ruby', '~> 3.0.0' -- cgit v1.2.3