aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/CHANGELOG.md
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2013-03-04 18:50:56 +0100
committerYves Senn <yves.senn@gmail.com>2013-03-04 18:51:34 +0100
commitb501ee47fa3f877f8b8028e732f8ef8a22cc75fb (patch)
tree86ae07db52a22da555b1cea3e14b76630bc1a7fc /activemodel/CHANGELOG.md
parentb359c5db9f0e7dfb2cbf34362a9b310cf5aadd3a (diff)
downloadrails-b501ee47fa3f877f8b8028e732f8ef8a22cc75fb.tar.gz
rails-b501ee47fa3f877f8b8028e732f8ef8a22cc75fb.tar.bz2
rails-b501ee47fa3f877f8b8028e732f8ef8a22cc75fb.zip
`validates_confirmation_of` does not override writer methods.
Diffstat (limited to 'activemodel/CHANGELOG.md')
-rw-r--r--activemodel/CHANGELOG.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/activemodel/CHANGELOG.md b/activemodel/CHANGELOG.md
index 1fe6dbd4d9..e518334d5d 100644
--- a/activemodel/CHANGELOG.md
+++ b/activemodel/CHANGELOG.md
@@ -1,5 +1,20 @@
## Rails 4.0.0 (unreleased) ##
+* `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
+
+ # previously this would override the setter above.
+ validates_confirmation_of :title
+ end
+
+ *Yves Senn*
## Rails 4.0.0.beta1 (February 25, 2013) ##