@@ -134,12 +134,12 @@ and matches the core Ruby behavior:
134
134
135
135
.. note::
136
136
137
- The value of ``Mongoid.legacy_triple_equals`` option will change to ``false``
138
- by default in Mongoid 8.0 .
137
+ In Mongoid 8.0, the default value of the ``Mongoid.legacy_triple_equals`` option will
138
+ change to ``false`` .
139
139
140
140
141
- Return Hexadecimal ``_id`` Value from ``BSON::ObjectId#as_json``
142
- ----------------------------------------------------------------
141
+ Return String ``_id`` Value (Hexadecimal) from ``BSON::ObjectId#as_json``
142
+ -------------------------------------------------------------------------
143
143
144
144
Mongoid 7.4 permits configuring the ``BSON::ObjectId#as_json`` method
145
145
to return the ``_id`` value as a hexadecimal string instead of the
@@ -176,6 +176,11 @@ The behavior of ``as_json`` is summarized in the following table:
176
176
- ``{"$oid"=>"621ed7fda15d5d231594627c"}``
177
177
- ``"621ed7fda15d5d231594627c"``
178
178
179
+ .. note::
180
+
181
+ In Mongoid 8.0, the default value of the ``Mongoid.object_id_as_json_oid`` option will
182
+ change to ``false``.
183
+
179
184
180
185
Scoped Associations
181
186
-------------------
@@ -203,8 +208,12 @@ that are already loaded into memory vs queries on unloaded associations and
203
208
top-level models.
204
209
205
210
The ``Mongoid.compare_time_by_ms`` option is set to ``false`` by default
206
- in Mongoid 7.4 for backwards compatibility. In Mongoid 8 the default value
207
- will change to ``true``.
211
+ in Mongoid 7.4 for backwards compatibility.
212
+
213
+ .. note::
214
+
215
+ In Mongoid 8.0, the default value of the ``Mongoid.compare_time_by_ms`` option will
216
+ change to ``true``.
208
217
209
218
210
219
``count``, ``sum``, ``avg``, ``min``, ``max`` Ignore Sort If Not Limiting/Skipping
@@ -237,8 +246,8 @@ set to ``true`` (the default) returns ``nil`` in this case.
237
246
238
247
.. note::
239
248
240
- The value of ``Mongoid.broken_aggregables`` option will change to ``false``
241
- by default in Mongoid 8.0 .
249
+ In Mongoid 8.0, the default value of the ``Mongoid.broken_aggregables`` option will
250
+ change to ``false`` .
242
251
243
252
244
253
Correct Update Behavior When Replacing Association
@@ -266,8 +275,8 @@ we would expect it to be ``palette``.
266
275
267
276
.. note::
268
277
269
- The value of ``Mongoid.broken_update `` option will change to ``false``
270
- by default in Mongoid 8.0.
278
+ In Mongoid 8.0, the default value of the ``Mongoid.broken_updates `` option will
279
+ change to ``false``
271
280
272
281
273
282
Correct Logical ``and`` Query Generation
@@ -307,8 +316,8 @@ generated instead which omit the {"$in" => [2021]} condition:
307
316
308
317
.. note::
309
318
310
- The value of ``Mongoid.broken_and`` option will change to ``false``
311
- by default in Mongoid 8.0 .
319
+ In Mongoid 8.0, the default value of the ``Mongoid.broken_and`` option will
320
+ change to ``false`` .
312
321
313
322
314
323
Restore Parent Scope When Exiting ``with_scope`` Block
@@ -344,8 +353,8 @@ all scopes are cleared:
344
353
345
354
.. note::
346
355
347
- The value of ``Mongoid.broken_scoping`` option will change to ``false``
348
- by default in Mongoid 8.0 .
356
+ In Mongoid 8.0, the default value of the ``Mongoid.broken_scoping`` option will
357
+ change to ``false`` .
349
358
350
359
351
360
Changes to ``distinct`` and ``pluck``
@@ -396,8 +405,8 @@ Mongoid 7.3 and 7.4 with ``Mongoid.broken_alias_handling`` set to ``true`` behav
396
405
397
406
.. note::
398
407
399
- The value of ``Mongoid.broken_alias_handling`` option will change to ``false``
400
- by default in Mongoid 8.0 .
408
+ In Mongoid 8.0, the default value of the ``Mongoid.broken_alias_handling`` option will
409
+ change to ``false`` .
401
410
402
411
403
412
Demongoize Values Returned from ``pluck`` and ``distinct``
@@ -441,8 +450,9 @@ distinct methods will not be demongoized. For example:
441
450
442
451
.. note::
443
452
444
- The value of ``Mongoid.legacy_pluck_distinct`` option will change to ``false``
445
- by default in Mongoid 8.0.
453
+ In Mongoid 8.0, the default value of the ``Mongoid.legacy_pluck_distinct`` option will
454
+ change to ``false``.
455
+
446
456
447
457
Localized Fields with ``pluck`` and ``distinct``
448
458
````````````````````````````````````````````````
@@ -489,8 +499,8 @@ For example:
489
499
490
500
.. note::
491
501
492
- The value of ``Mongoid.legacy_pluck_distinct`` option will change to ``false``
493
- by default in Mongoid 8.0 .
502
+ In Mongoid 8.0, the default value of the ``Mongoid.legacy_pluck_distinct`` option will
503
+ change to ``false`` .
494
504
495
505
496
506
Embedded Fields with ``pluck``
@@ -532,6 +542,5 @@ inside a hash. For example:
532
542
533
543
.. note::
534
544
535
- The value of ``Mongoid.legacy_pluck_distinct`` option will change to ``false``
536
- by default in Mongoid 8.0.
537
-
545
+ In Mongoid 8.0, the default value of the ``Mongoid.legacy_pluck_distinct`` option will
546
+ change to ``false``.
0 commit comments