File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,23 @@ please consult GitHub releases for detailed release notes and JIRA for
18
18
the complete list of issues fixed in each release, including bug fixes.
19
19
20
20
21
+ ``around_*`` callbacks for embedded documents are now ignored
22
+ -------------------------------------------------------------
23
+
24
+ Mongoid 8.x and older allows user to define ``around_*`` callbacks for embedded
25
+ documents. Starting from 9.0 these callbacks are ignored and will not be executed.
26
+ A warning will be printed to the console if such callbacks are defined.
27
+
28
+ If you want to restore the old behavior, you can set
29
+ ``Mongoid.around_embedded_document_callbacks`` to true in your application.
30
+
31
+ .. note::
32
+ Enabling ``around_*`` callbacks for embedded documents is not recommended
33
+ as it may cause ``SystemStackError`` exceptions when a document has many
34
+ embedded documents. See `MONGOID-5658 <https://jira.mongodb.org/browse/MONGOID-5658>`_
35
+ for more details.
36
+
37
+
21
38
``for_js`` method is deprecated
22
39
-------------------------------
23
40
You can’t perform that action at this time.
0 commit comments