File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -149,15 +149,15 @@ Removal of Deprecated Class ``Mongoid::Errors::InvalidStorageParent``
149
149
The deprecated class ``{+odm+}::Errors::InvalidStorageParent`` has been
150
150
removed.
151
151
152
- ``around_*`` Callbacks for Embedded Documents are Ignored
153
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
152
+ ``around_*`` Callbacks for Embedded Documents are Ignored by Default
153
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
154
154
155
155
{+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.
158
158
159
159
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.
161
161
162
162
.. note::
163
163
You can’t perform that action at this time.
0 commit comments