Permalink
Browse files

Reworded a few doc things for better comprehension [dblack]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@226 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 0f47818 commit 830c561e7105f89020f2c3ccb465aa0864e92b87 @dhh dhh committed Dec 19, 2004
Showing with 3 additions and 3 deletions.
  1. +3 −3 activerecord/lib/active_record/validations.rb
View
6 activerecord/lib/active_record/validations.rb
@@ -74,7 +74,7 @@ module ClassMethods
# <%= password_field "person", "password_confirmation" %>
#
# The person has to already have a password attribute (a column in the people table), but the password_confirmation is virtual.
- # It exists only as an in-memory variable for validating the password. This check is performed both on create and update.
+ # It exists only as an in-memory variable for validating the password. This check is performed on save by default.
#
# Configuration options:
# * <tt>message</tt> - A custom error message (default is: "doesn't match confirmation")
@@ -96,7 +96,7 @@ def validates_confirmation_of(*attr_names)
# validates_acceptance_of :eula, :message => "must be abided"
# end
#
- # The terms_of_service attribute is entirely virtual. No database column is needed. This check is performed both on create and update.
+ # The terms_of_service attribute is entirely virtual. No database column is needed. This check is performed on save by default.
#
# Configuration options:
# * <tt>message</tt> - A custom error message (default is: "can't be empty")
@@ -113,7 +113,7 @@ def validates_acceptance_of(*attr_names)
end
end
- # Validates that the specified attributes are neither nil nor empty. Happens by default on both create and update.
+ # Validates that the specified attributes are neither nil nor empty. Happens by default on save.
#
# Configuration options:
# * <tt>message</tt> - A custom error message (default is: "has already been taken")

0 comments on commit 830c561

Please sign in to comment.