Skip to content

Commit 2d865a7

Browse files
committed
MONGOID-5340 revise language
1 parent 77069e6 commit 2d865a7

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

source/release-notes/mongoid-7.0.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ New in version 7.0.5: Mongoid now officially supports Rails 6.0.
4343
``set`` Overwrites Complete Document
4444
------------------------------------
4545

46-
**Breaking change:** In Mongoid 7.0.2 and higher, ``set`` writes
47-
the provided attributes as the complete document (or sub-document), replacing
48-
any other attributes stored in the database. This behavior matches that of
49-
MongoDB ``$set`` operator. In Mongoid 7.0.1 and lower, ``set`` retained other
50-
attributes present in the database below the document being written:
46+
**Breaking change:** In Mongoid 7.0.2 and higher, ``set`` fully overwrites
47+
the targeted attributes in the database, including any nested documents
48+
and nested attributes. This behavior matches that of MongoDB ``$set`` operator.
49+
In Mongoid 7.0.1 and lower, ``set`` retained other attributes present in the
50+
database below the document being written:
5151

5252
.. code-block:: ruby
5353

source/release-notes/mongoid-7.1.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -257,11 +257,11 @@ example, the following two approaches result in the same generated selector:
257257
``set`` Overwrites Complete Document
258258
------------------------------------
259259

260-
**Breaking change:** In Mongoid 7.1 (and 7.0.2 and higher), ``set`` writes
261-
the provided attributes as the complete document (or sub-document), replacing
262-
any other attributes stored in the database. This behavior matches that of
263-
MongoDB ``$set`` operator. In Mongoid 7.0.1 and lower, ``set`` retained other
264-
attributes present in the database below the document being written:
260+
**Breaking change:** In Mongoid 7.1 (and 7.0.2 and higher), ``set`` fully
261+
overwrites the targeted attributes in the database, including any nested
262+
documents and nested attributes. This behavior matches that of MongoDB ``$set``
263+
operator. In Mongoid 7.0.1 and lower, ``set`` retained other attributes present
264+
in the database below the document being written:
265265

266266
.. code-block:: ruby
267267

0 commit comments

Comments
 (0)