Skip to content

Commit d68d538

Browse files
authored
update release notes (#137)
1 parent 9359ec2 commit d68d538

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

source/reference/release-notes.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -149,15 +149,15 @@ Removal of Deprecated Class ``Mongoid::Errors::InvalidStorageParent``
149149
The deprecated class ``{+odm+}::Errors::InvalidStorageParent`` has been
150150
removed.
151151

152-
``around_*`` Callbacks for Embedded Documents are Ignored
153-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
152+
``around_*`` Callbacks for Embedded Documents are Ignored by Default
153+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
154154

155155
{+odm+} v8.x and older allow user to define ``around_*`` callbacks for embedded
156-
documents. Starting in v9.0, these callbacks are ignored and will not be executed.
157-
A warning will be printed to the console if such callbacks are defined.
156+
documents. Starting in v9.0, by default these callbacks are ignored and will
157+
not be executed. A warning will be printed to the console if such callbacks are defined.
158158

159159
If you want to restore the old behavior, you can set
160-
``Mongoid.around_embedded_document_callbacks`` to true in your application.
160+
``Mongoid.around_callbacks_for_embeds`` to true in your application.
161161

162162
.. note::
163163

0 commit comments

Comments
 (0)