Skip to content

Commit a0ff67b

Browse files
authored
MONGOID-5489 note explicit default values for legacy_readonly (#5639)
1 parent 6ff8062 commit a0ff67b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/release-notes/mongoid-8.1.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ Added ``readonly!`` method and ``legacy_readonly`` feature flag
260260
---------------------------------------------------------------
261261

262262
Mongoid 8.1 changes the meaning of read-only documents. In Mongoid 8.1 with
263-
this feature flag turned off, a document becomes read-only when calling the
263+
this feature flag turned off (``false``), a document becomes read-only when calling the
264264
``readonly!`` method:
265265

266266
.. code:: ruby
@@ -276,7 +276,7 @@ With this feature flag turned off, a ``ReadonlyDocument`` error will be
276276
raised when destroying or deleting, as well as when saving or updating.
277277

278278
Prior to Mongoid 8.1 and in 8.1 with the ``legacy_readonly`` feature flag
279-
turned on, documents become read-only when they are projected (i.e. using
279+
turned on (``true``), documents become read-only when they are projected (i.e. using
280280
``#only`` or ``#without``).
281281

282282
.. code:: ruby

0 commit comments

Comments
 (0)