aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/CHANGELOG.md
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-03-09 14:57:10 -0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-03-09 14:57:31 -0300
commitb3a31e936363472e7f9bf08cdb0d894127fbd753 (patch)
tree58bf90fd7cd69cf21da53a01bd0531ea1d28eeb3 /activemodel/CHANGELOG.md
parent72be5bb5573310e9b05f3f46b1e48b927a1f00d4 (diff)
downloadrails-b3a31e936363472e7f9bf08cdb0d894127fbd753.tar.gz
rails-b3a31e936363472e7f9bf08cdb0d894127fbd753.tar.bz2
rails-b3a31e936363472e7f9bf08cdb0d894127fbd753.zip
Fix AMo code example indent, add missing author to entry [ci skip]
Diffstat (limited to 'activemodel/CHANGELOG.md')
-rw-r--r--activemodel/CHANGELOG.md14
1 files changed, 8 insertions, 6 deletions
diff --git a/activemodel/CHANGELOG.md b/activemodel/CHANGELOG.md
index 8c54ec3d45..c6d7b0b5d3 100644
--- a/activemodel/CHANGELOG.md
+++ b/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*