diff options
author | Xavier Noria <fxn@hashref.com> | 2010-08-12 19:30:51 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-08-12 19:30:51 +0200 |
commit | 08c37ebf6fcce3718b333721bf992a8087d15b39 (patch) | |
tree | 37790adc47f4d55e357577383dd75ae4e58e827c /activerecord/lib/active_record | |
parent | 4134d7db34506887f5cb945bb4e51c53c5f67ec3 (diff) | |
download | rails-08c37ebf6fcce3718b333721bf992a8087d15b39.tar.gz rails-08c37ebf6fcce3718b333721bf992a8087d15b39.tar.bz2 rails-08c37ebf6fcce3718b333721bf992a8087d15b39.zip |
be more precise re :validate and :autosave
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/associations.rb | 8 | ||||
-rw-r--r-- | activerecord/lib/active_record/autosave_association.rb | 3 |
2 files changed, 5 insertions, 6 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index 8be36482d4..a987b174ed 100644 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -954,7 +954,7 @@ module ActiveRecord # [:readonly] # If true, all the associated objects are readonly through the association. # [:validate] - # If false, don't validate the associated objects when saving the parent object. true by default. + # If +false+, don't validate the associated objects when saving the parent object. true by default. # [:autosave] # If true, always save the associated objects or destroy them if marked for destruction, # when saving the parent object. If false, never save or destroy the associated objects. @@ -1076,7 +1076,7 @@ module ActiveRecord # [:readonly] # If true, the associated object is readonly through the association. # [:validate] - # If false, don't validate the associated object when saving the parent object. +false+ by default. + # If +false+, don't validate the associated object when saving the parent object. +false+ by default. # [:autosave] # If true, always save the associated object or destroy it if marked for destruction, # when saving the parent object. If false, never save or destroy the associated object. @@ -1189,7 +1189,7 @@ module ActiveRecord # [:readonly] # If true, the associated object is readonly through the association. # [:validate] - # If false, don't validate the associated objects when saving the parent object. +false+ by default. + # If +false+, don't validate the associated objects when saving the parent object. +false+ by default. # [:autosave] # If true, always save the associated object or destroy it if marked for destruction, when # saving the parent object. @@ -1392,7 +1392,7 @@ module ActiveRecord # [:readonly] # If true, all the associated objects are readonly through the association. # [:validate] - # If false, don't validate the associated objects when saving the parent object. +true+ by default. + # If +false+, don't validate the associated objects when saving the parent object. +true+ by default. # [:autosave] # If true, always save the associated objects or destroy them if marked for destruction, when # saving the parent object. diff --git a/activerecord/lib/active_record/autosave_association.rb b/activerecord/lib/active_record/autosave_association.rb index 131591405c..5b890e5a04 100644 --- a/activerecord/lib/active_record/autosave_association.rb +++ b/activerecord/lib/active_record/autosave_association.rb @@ -112,8 +112,7 @@ module ActiveRecord # # === Validation # - # Validations on children records are run or not depending on the <tt>:validate</tt> - # option of the association. + # Children records are validated unless <tt>:validate</tt> is +false+. module AutosaveAssociation extend ActiveSupport::Concern |