From 6e9bbe3d0b55e86e0613e99df98c001fdebd37a9 Mon Sep 17 00:00:00 2001 From: Alan Harper Date: Thu, 5 Jan 2012 08:26:34 +1100 Subject: [PATCH] Update ConfirmationValidator docs, correct when the validator runs --- activemodel/lib/active_model/validations/confirmation.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activemodel/lib/active_model/validations/confirmation.rb b/activemodel/lib/active_model/validations/confirmation.rb index 6573a7d264..e8526303e2 100644 --- a/activemodel/lib/active_model/validations/confirmation.rb +++ b/activemodel/lib/active_model/validations/confirmation.rb @@ -37,7 +37,7 @@ module ActiveModel # attribute. # # NOTE: This check is performed only if +password_confirmation+ is not - # +nil+, and by default only on save. To require confirmation, make sure + # +nil+. To require confirmation, make sure # to add a presence check for the confirmation attribute: # # validates_presence_of :password_confirmation, :if => :password_changed?