From 36a14187204c5106e1475bf5b67d26fd992bcafe Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 13 Mar 2008 18:45:54 +0000 Subject: Docfix (closes #11309) [thechrisoshow] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9023 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/lib/active_record/base.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'activerecord/lib/active_record') 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 -- cgit v1.2.3