aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorEric Krause <eric.krause@gmail.com>2015-12-17 12:00:30 -0700
committerEric Krause <eric.krause@gmail.com>2015-12-17 12:00:30 -0700
commit2e16cc9e92dfdfc8c95fffb62df80ceacbc70560 (patch)
tree6c8e7edf6ac2e26552c0ae56b4ac8263ffa7d87f /activerecord
parent7f86ed8b36b534cf94fe2ff47ae71956b57893ac (diff)
downloadrails-2e16cc9e92dfdfc8c95fffb62df80ceacbc70560.tar.gz
rails-2e16cc9e92dfdfc8c95fffb62df80ceacbc70560.tar.bz2
rails-2e16cc9e92dfdfc8c95fffb62df80ceacbc70560.zip
Expanding the documentation for collection=objects for has_many :through [ci-skip]
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/associations.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb
index 04ad45f5da..462b3066ab 100644
--- a/activerecord/lib/active_record/associations.rb
+++ b/activerecord/lib/active_record/associations.rb
@@ -1181,7 +1181,8 @@ module ActiveRecord
# [collection=objects]
# Replaces the collections content by deleting and adding objects as appropriate. If the <tt>:through</tt>
# option is true callbacks in the join models are triggered except destroy callbacks, since deletion is
- # direct.
+ # direct by default. You can specify <tt>dependent: :destroy</tt> or
+ # <tt>dependent: :nullify</tt> to override this.
# [collection_singular_ids]
# Returns an array of the associated objects' ids
# [collection_singular_ids=ids]