mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix AMo code example indent, add missing author to entry [ci skip]
This commit is contained in:
parent
72be5bb557
commit
b3a31e9363
1 changed files with 8 additions and 6 deletions
|
@ -5,11 +5,13 @@
|
|||
|
||||
Example:
|
||||
|
||||
# given User has_secure_password.
|
||||
# Given User has_secure_password.
|
||||
@user.password = ""
|
||||
@user.password_confirmation = ""
|
||||
@user.valid?(:update) # used to be false
|
||||
|
||||
*Yves Senn*
|
||||
|
||||
* `validates_confirmation_of` does not override writer methods for
|
||||
the confirmation attribute if no reader is defined.
|
||||
|
||||
|
|
Loading…
Reference in a new issue