aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib
diff options
context:
space:
mode:
authorAlan Harper <alan@aussiegeek.net>2012-01-05 08:26:34 +1100
committerAlan Harper <alan@aussiegeek.net>2012-01-05 08:26:34 +1100
commit6e9bbe3d0b55e86e0613e99df98c001fdebd37a9 (patch)
tree8b58e3d1189fb5f8fabbd1654850676ec73ef08a /activemodel/lib
parent40cf1269074a181a23f362a910dfaf2a02f7e562 (diff)
downloadrails-6e9bbe3d0b55e86e0613e99df98c001fdebd37a9.tar.gz
rails-6e9bbe3d0b55e86e0613e99df98c001fdebd37a9.tar.bz2
rails-6e9bbe3d0b55e86e0613e99df98c001fdebd37a9.zip
Update ConfirmationValidator docs, correct when the validator runs
Diffstat (limited to 'activemodel/lib')
-rw-r--r--activemodel/lib/active_model/validations/confirmation.rb2
1 files changed, 1 insertions, 1 deletions
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?