Docfix (closes #11309) [thechrisoshow]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9023 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 2c6e616b
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册