Skip to content

Commit 9fd0cfc

Browse files
jonathanhefnerp8
andcommitted
Merge pull request #49936 from seanpdoyle/ar-nested-attributes-default
Docs: Replace "off" with `false` [ci skip] Co-authored-by: Petrik <[email protected]> (cherry picked from commit 488a7ce)
1 parent 5337ac7 commit 9fd0cfc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

activerecord/lib/active_record/nested_attributes.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ module ClassMethods
289289
# [:allow_destroy]
290290
# If true, destroys any members from the attributes hash with a
291291
# <tt>_destroy</tt> key and a value that evaluates to +true+
292-
# (e.g. 1, '1', true, or 'true'). This option is off by default.
292+
# (e.g. 1, '1', true, or 'true'). This option is false by default.
293293
# [:reject_if]
294294
# Allows you to specify a Proc or a Symbol pointing to a method
295295
# that checks whether a record should be built for a certain attribute
@@ -314,11 +314,11 @@ module ClassMethods
314314
# nested attributes are going to be used when an associated record already
315315
# exists. In general, an existing record may either be updated with the
316316
# new set of attribute values or be replaced by a wholly new record
317-
# containing those values. By default the +:update_only+ option is +false+
317+
# containing those values. By default the +:update_only+ option is false
318318
# and the nested attributes are used to update the existing record only
319319
# if they include the record's <tt>:id</tt> value. Otherwise a new
320320
# record will be instantiated and used to replace the existing one.
321-
# However if the +:update_only+ option is +true+, the nested attributes
321+
# However if the +:update_only+ option is true, the nested attributes
322322
# are used to update the record's attributes always, regardless of
323323
# whether the <tt>:id</tt> is present. The option is ignored for collection
324324
# associations.

0 commit comments

Comments
 (0)