diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2015-12-17 17:14:31 -0200 |
---|---|---|
committer | Rafael França <rafaelmfranca@gmail.com> | 2015-12-17 17:14:31 -0200 |
commit | c7210b9d4cd35ae3d264932ae6276897ac68456d (patch) | |
tree | 4f7222fbe3d0de1696036436ab1031b3739aba05 | |
parent | 01d7189ab9db4ef2de720fb5b940acc093c434ca (diff) | |
parent | 2e16cc9e92dfdfc8c95fffb62df80ceacbc70560 (diff) | |
download | rails-c7210b9d4cd35ae3d264932ae6276897ac68456d.tar.gz rails-c7210b9d4cd35ae3d264932ae6276897ac68456d.tar.bz2 rails-c7210b9d4cd35ae3d264932ae6276897ac68456d.zip |
Merge pull request #22644 from erickrause/expanding_has_many_through_doc
Expanding the documentation for collection=objects [ci-skip]
-rw-r--r-- | activerecord/lib/active_record/associations.rb | 3 |
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] |