Skip to content

Commit 488a7ce

Browse files
jonathanhefnerp8
andauthored
Merge pull request rails#49936 from seanpdoyle/ar-nested-attributes-default
Docs: Replace "off" with `false` [ci skip] Co-authored-by: Petrik <[email protected]>
2 parents 8d778e0 + 1567419 commit 488a7ce

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
@@ -307,7 +307,7 @@ module ClassMethods
307307
# [:allow_destroy]
308308
# If true, destroys any members from the attributes hash with a
309309
# <tt>_destroy</tt> key and a value that evaluates to +true+
310-
# (e.g. 1, '1', true, or 'true'). This option is off by default.
310+
# (e.g. 1, '1', true, or 'true'). This option is false by default.
311311
# [:reject_if]
312312
# Allows you to specify a Proc or a Symbol pointing to a method
313313
# that checks whether a record should be built for a certain attribute
@@ -332,11 +332,11 @@ module ClassMethods
332332
# nested attributes are going to be used when an associated record already
333333
# exists. In general, an existing record may either be updated with the
334334
# new set of attribute values or be replaced by a wholly new record
335-
# containing those values. By default the +:update_only+ option is +false+
335+
# containing those values. By default the +:update_only+ option is false
336336
# and the nested attributes are used to update the existing record only
337337
# if they include the record's <tt>:id</tt> value. Otherwise a new
338338
# record will be instantiated and used to replace the existing one.
339-
# However if the +:update_only+ option is +true+, the nested attributes
339+
# However if the +:update_only+ option is true, the nested attributes
340340
# are used to update the record's attributes always, regardless of
341341
# whether the <tt>:id</tt> is present. The option is ignored for collection
342342
# associations.

0 commit comments

Comments
 (0)