Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix AMo code example indent, add missing author to entry [ci skip]

  • Loading branch information...
commit b3a31e936363472e7f9bf08cdb0d894127fbd753 1 parent 72be5bb
@carlosantoniodasilva carlosantoniodasilva authored
Showing with 8 additions and 6 deletions.
  1. +8 −6 activemodel/CHANGELOG.md
View
14 activemodel/CHANGELOG.md
@@ -5,23 +5,25 @@
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.
Example:
class Blog
- def title=(new_title)
- @title = new_title.downcase
- end
+ def title=(new_title)
+ @title = new_title.downcase
+ end
- # previously this would override the setter above.
- validates_confirmation_of :title
+ # previously this would override the setter above.
+ validates_confirmation_of :title
end
*Yves Senn*
Please sign in to comment.
Something went wrong with that request. Please try again.