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``
149149The deprecated class ``{+odm+}::Errors::InvalidStorageParent`` has been
150150removed.
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
159159If 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
You can’t perform that action at this time.
0 commit comments