diff options
author | Eloy Duran <eloy.de.enige@gmail.com> | 2009-07-11 21:01:56 +0200 |
---|---|---|
committer | Eloy Duran <eloy.de.enige@gmail.com> | 2009-09-12 16:04:25 +0200 |
commit | 580ec0dccde075330abe68eb13badb03b225f9b4 (patch) | |
tree | e8d3046fc23f1ac5ca4b355eded5e2ebd63a8f29 /activerecord | |
parent | 65f98951ac5fe75191c6fde996b9e0f9b765414f (diff) | |
download | rails-580ec0dccde075330abe68eb13badb03b225f9b4.tar.gz rails-580ec0dccde075330abe68eb13badb03b225f9b4.tar.bz2 rails-580ec0dccde075330abe68eb13badb03b225f9b4.zip |
Added some documentation about setting :autosave => false on an association.
Diffstat (limited to 'activerecord')
-rwxr-xr-x | activerecord/lib/active_record/associations.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index 72061a1b31..266a52d612 100755 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -280,9 +280,10 @@ module ActiveRecord # You can manipulate objects and associations before they are saved to the database, but there is some special behavior you should be # aware of, mostly involving the saving of associated objects. # - # Unless you enable the :autosave option on a <tt>has_one</tt>, <tt>belongs_to</tt>, - # <tt>has_many</tt>, or <tt>has_and_belongs_to_many</tt> association, - # in which case the members are always saved. + # Unless you set the :autosave option on a <tt>has_one</tt>, <tt>belongs_to</tt>, + # <tt>has_many</tt>, or <tt>has_and_belongs_to_many</tt> association. Setting it + # to +true+ will _always_ save the members, whereas setting it to +false+ will + # _never_ save the members. # # === One-to-one associations # |