diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2008-03-13 18:45:54 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2008-03-13 18:45:54 +0000 |
commit | 36a14187204c5106e1475bf5b67d26fd992bcafe (patch) | |
tree | 578d582e194923546e47827f5190798db3981cfc /activerecord | |
parent | 2c6e616b90483681ccaff7e04d47b88470a309b0 (diff) | |
download | rails-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-x | activerecord/lib/active_record/base.rb | 6 |
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 |