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:
parent
40cf126907
commit
6e9bbe3d0b
1 changed files with 1 additions and 1 deletions
|
@ -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?
|
||||||
|
|
Loading…
Reference in a new issue