Browse files

Added some documentation about setting :autosave => false on an assoc…

…iation.
  • Loading branch information...
1 parent 65f9895 commit 580ec0dccde075330abe68eb13badb03b225f9b4 @alloy alloy committed Jul 11, 2009
Showing with 4 additions and 3 deletions.
  1. +4 −3 activerecord/lib/active_record/associations.rb
View
7 activerecord/lib/active_record/associations.rb
@@ -280,9 +280,10 @@ def association_instance_set(name, association)
# 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
#

0 comments on commit 580ec0d

Please sign in to comment.