Docfix (closes #11309) [thechrisoshow]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9023 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson 2008-03-13 18:45:54 +00:00
parent 2c6e616b90
commit 36a1418720

@ -2097,6 +2097,12 @@ def new_record?
# * 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