1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Update ConfirmationValidator docs, correct when the validator runs

This commit is contained in:
Alan Harper 2012-01-05 08:26:34 +11:00
parent 40cf126907
commit 6e9bbe3d0b

View file

@ -37,7 +37,7 @@ module ActiveModel
# attribute. # attribute.
# #
# NOTE: This check is performed only if +password_confirmation+ is not # NOTE: This check is performed only if +password_confirmation+ is not
# +nil+, and by default only on save. To require confirmation, make sure # +nil+. To require confirmation, make sure
# to add a presence check for the confirmation attribute: # to add a presence check for the confirmation attribute:
# #
# validates_presence_of :password_confirmation, :if => :password_changed? # validates_presence_of :password_confirmation, :if => :password_changed?