aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib/active_record')
-rwxr-xr-xactiverecord/lib/active_record/associations.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb
index 0a3c7c6a60..9d39a0c49b 100755
--- a/activerecord/lib/active_record/associations.rb
+++ b/activerecord/lib/active_record/associations.rb
@@ -839,10 +839,11 @@ module ActiveRecord
# If set to <tt>:destroy</tt> all the associated objects are destroyed
# alongside this object by calling their +destroy+ method. If set to <tt>:delete_all</tt> all associated
# objects are deleted *without* calling their +destroy+ method. If set to <tt>:nullify</tt> all associated
- # objects' foreign keys are set to +NULL+ *without* calling their +save+ callbacks. *Warning:* This option is ignored when also using
- # the <tt>:through</tt> option.
- # the <tt>:through</tt> option. If set to <tt>:restrict</tt>
- # this object cannot be deleted if it has any associated object.
+ # objects' foreign keys are set to +NULL+ *without* calling their +save+ callbacks. If set to
+ # <tt>:restrict</tt> this object cannot be deleted if it has any associated object.
+ #
+ # *Warning:* This option is ignored when used with <tt>:through</tt> option.
+ #
# [:finder_sql]
# Specify a complete SQL statement to fetch the association. This is a good way to go for complex
# associations that depend on multiple tables. Note: When this option is used, +find_in_collection+ is _not_ added.