From b3a31e936363472e7f9bf08cdb0d894127fbd753 Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Sat, 9 Mar 2013 14:57:10 -0300 Subject: Fix AMo code example indent, add missing author to entry [ci skip] --- activemodel/CHANGELOG.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'activemodel/CHANGELOG.md') 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* -- cgit v1.2.3