aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib
diff options
context:
space:
mode:
authorDaniel Lopes <danielvlopes@gmail.com>2012-11-13 17:31:46 -0600
committerDaniel Lopes <danielvlopes@gmail.com>2012-11-13 17:31:46 -0600
commitd7536e610814beccb251cd89bd0ba909cf3e8ad8 (patch)
treeba7dc6f5fb14a6fdfbf8df073d965f54431b08a7 /activemodel/lib
parent7864f8316544a0646a4ef2ce6ba237cd4cac5642 (diff)
downloadrails-d7536e610814beccb251cd89bd0ba909cf3e8ad8.tar.gz
rails-d7536e610814beccb251cd89bd0ba909cf3e8ad8.tar.bz2
rails-d7536e610814beccb251cd89bd0ba909cf3e8ad8.zip
add details on password confirmation used with has_secure_password
Diffstat (limited to 'activemodel/lib')
-rw-r--r--activemodel/lib/active_model/secure_password.rb4
1 files changed, 4 insertions, 0 deletions
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 <tt>validations: false</tt> 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'