提交 d7536e61 编写于 作者: D Daniel Lopes

add details on password confirmation used with has_secure_password

上级 7864f831
...@@ -11,6 +11,10 @@ module ClassMethods ...@@ -11,6 +11,10 @@ module ClassMethods
# you wish to turn off validations, pass <tt>validations: false</tt> as an # you wish to turn off validations, pass <tt>validations: false</tt> as an
# argument. You can add more validations by hand if need be. # 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: # You need to add bcrypt-ruby (~> 3.0.0) to Gemfile to use #has_secure_password:
# #
# gem 'bcrypt-ruby', '~> 3.0.0' # gem 'bcrypt-ruby', '~> 3.0.0'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册