Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Docfix (closes #11309) [thechrisoshow]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9023 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 36a14187204c5106e1475bf5b67d26fd992bcafe 1 parent 2c6e616
@dhh dhh authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 activerecord/lib/active_record/base.rb
View
6 activerecord/lib/active_record/base.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.