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 @@ -148,6 +148,23 @@ Removal of Deprecated Class ``Mongoid::Errors::InvalidStorageParent``
148148The deprecated class ``{+odm+}::Errors::InvalidStorageParent`` has been
149149removed.
150150
151+ ``around_*`` Callbacks for Embedded Documents are Ignored by Default
152+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
153+
154+ {+odm+} v8.x and older allow user to define ``around_*`` callbacks for embedded
155+ documents. Starting in v9.0, by default, these callbacks are ignored and will
156+ not be executed. 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_callbacks_for_embeds`` 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+
151168``for_js`` Method is Deprecated
152169~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
153170
You can’t perform that action at this time.
0 commit comments