Skip to content

MONGOID-5714 - Fix "embedded callbacks removed" in 9.0 release notes #124

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions source/whats-new.txt
Original file line number Diff line number Diff line change
Expand Up @@ -148,15 +148,15 @@ Removal of Deprecated Class ``Mongoid::Errors::InvalidStorageParent``
The deprecated class ``{+odm+}::Errors::InvalidStorageParent`` has been
removed.

``around_*`` Callbacks for Embedded Documents are Ignored
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
``around_*`` Callbacks for Embedded Documents are Ignored by Default
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

{+odm+} v8.x and older allow user to define ``around_*`` callbacks for embedded
documents. Starting in v9.0, these callbacks are ignored and will not be executed.
A warning will be printed to the console if such callbacks are defined.
documents. Starting in v9.0, by default these callbacks are ignored and will
not be executed. A warning will be printed to the console if such callbacks are defined.

If you want to restore the old behavior, you can set
``Mongoid.around_embedded_document_callbacks`` to true in your application.
``Mongoid.around_callbacks_for_embeds`` to true in your application.

.. note::

Expand Down
Loading