Skip to content

Commit

Permalink
Merge pull request rails#49936 from seanpdoyle/ar-nested-attributes-d…
Browse files Browse the repository at this point in the history
…efault

Docs: Replace "off" with `false` [ci skip]

Co-authored-by: Petrik <petrik@deheus.net>
  • Loading branch information
jonathanhefner and p8 committed Nov 6, 2023
2 parents 8d778e0 + 1567419 commit 488a7ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions activerecord/lib/active_record/nested_attributes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ module ClassMethods
# [:allow_destroy]
# If true, destroys any members from the attributes hash with a
# <tt>_destroy</tt> key and a value that evaluates to +true+
# (e.g. 1, '1', true, or 'true'). This option is off by default.
# (e.g. 1, '1', true, or 'true'). This option is false by default.
# [:reject_if]
# Allows you to specify a Proc or a Symbol pointing to a method
# that checks whether a record should be built for a certain attribute
Expand All @@ -332,11 +332,11 @@ module ClassMethods
# nested attributes are going to be used when an associated record already
# exists. In general, an existing record may either be updated with the
# new set of attribute values or be replaced by a wholly new record
# containing those values. By default the +:update_only+ option is +false+
# containing those values. By default the +:update_only+ option is false
# and the nested attributes are used to update the existing record only
# if they include the record's <tt>:id</tt> value. Otherwise a new
# record will be instantiated and used to replace the existing one.
# However if the +:update_only+ option is +true+, the nested attributes
# However if the +:update_only+ option is true, the nested attributes
# are used to update the record's attributes always, regardless of
# whether the <tt>:id</tt> is present. The option is ignored for collection
# associations.
Expand Down

0 comments on commit 488a7ce

Please sign in to comment.