aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2004-12-19 14:17:28 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2004-12-19 14:17:28 +0000
commit830c561e7105f89020f2c3ccb465aa0864e92b87 (patch)
tree4a77b6e4a445685b70233c36553c31ebb9c35fdf /activerecord/lib/active_record
parent0f478181e430a9926c8aa4bd7c19bd7fea85a8d3 (diff)
downloadrails-830c561e7105f89020f2c3ccb465aa0864e92b87.tar.gz
rails-830c561e7105f89020f2c3ccb465aa0864e92b87.tar.bz2
rails-830c561e7105f89020f2c3ccb465aa0864e92b87.zip
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
Diffstat (limited to 'activerecord/lib/active_record')
-rwxr-xr-xactiverecord/lib/active_record/validations.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/validations.rb b/activerecord/lib/active_record/validations.rb
index eb59dc0f82..21ecf5f1c0 100755
--- a/activerecord/lib/active_record/validations.rb
+++ b/activerecord/lib/active_record/validations.rb
@@ -74,7 +74,7 @@ module ActiveRecord
# <%= 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 @@ module ActiveRecord
# 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 @@ module ActiveRecord
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")