diff options
Diffstat (limited to 'activerecord/lib')
-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 |