aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2008-03-13 18:45:54 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2008-03-13 18:45:54 +0000
commit36a14187204c5106e1475bf5b67d26fd992bcafe (patch)
tree578d582e194923546e47827f5190798db3981cfc /activerecord
parent2c6e616b90483681ccaff7e04d47b88470a309b0 (diff)
downloadrails-36a14187204c5106e1475bf5b67d26fd992bcafe.tar.gz
rails-36a14187204c5106e1475bf5b67d26fd992bcafe.tar.bz2
rails-36a14187204c5106e1475bf5b67d26fd992bcafe.zip
Docfix (closes #11309) [thechrisoshow]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9023 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord')
-rwxr-xr-xactiverecord/lib/active_record/base.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb
index 7de760b28e..4bd06d54e9 100755
--- a/activerecord/lib/active_record/base.rb
+++ b/activerecord/lib/active_record/base.rb
@@ -2097,6 +2097,12 @@ module ActiveRecord #:nodoc:
# * No record exists: Creates a new record with values matching those of the object attributes.
# * A record does exist: Updates the record with values matching those of the object attributes.
+ #
+ # Note: If your model specifies any validations then the method declaration dynamically
+ # changes to:
+ # save(perform_validation=true)
+ # Calling save(false) saves the model without running validations.
+ # See ActiveRecord::Validations for more information.
def save
create_or_update
end