Skip to content

Commit 4eb12a0

Browse files
Remove "embedded callbacks removed" from 9.0 release notes
1 parent 86b660f commit 4eb12a0

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

source/whats-new.txt

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -148,23 +148,6 @@ Removal of Deprecated Class ``Mongoid::Errors::InvalidStorageParent``
148148
The deprecated class ``{+odm+}::Errors::InvalidStorageParent`` has been
149149
removed.
150150

151-
``around_*`` Callbacks for Embedded Documents are Ignored
152-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
153-
154-
{+odm+} v8.x and older allow user to define ``around_*`` callbacks for embedded
155-
documents. Starting in v9.0, these callbacks are ignored and will not be executed.
156-
A warning will be printed to the console if such callbacks are defined.
157-
158-
If you want to restore the old behavior, you can set
159-
``Mongoid.around_embedded_document_callbacks`` to true in your application.
160-
161-
.. note::
162-
163-
Enabling ``around_*`` callbacks for embedded documents is not recommended
164-
as it may cause ``SystemStackError`` exceptions when a document has many
165-
embedded documents. See `MONGOID-5658
166-
<https://jira.mongodb.org/browse/MONGOID-5658>`__ for more details.
167-
168151
``for_js`` Method is Deprecated
169152
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
170153

0 commit comments

Comments
 (0)