Merge pull request #18860 from alex-handley/enhancement/dependent_documentation_fix

Documentation Fix: Corrects explanation of what happens when dependent is not set
This commit is contained in:
Rafael Mendonça França 2015-02-10 15:15:30 -02:00
commit f926c1c953

@ -1014,7 +1014,7 @@ def association_instance_set(name, association)
# record(s) being removed so that callbacks are run. However <tt>delete</tt> and <tt>delete_all</tt> will either
# do the deletion according to the strategy specified by the <tt>:dependent</tt> option, or
# if no <tt>:dependent</tt> option is given, then it will follow the default strategy.
# The default strategy is <tt>:nullify</tt> (set the foreign keys to <tt>nil</tt>), except for
# The default strategy is to do nothing (leave the foreign keys with the parent ids set), except for
# +has_many+ <tt>:through</tt>, where the default strategy is <tt>delete_all</tt> (delete
# the join records, without running their callbacks).
#