diff --git a/source/whats-new.txt b/source/whats-new.txt index c98494f..8a51fd3 100644 --- a/source/whats-new.txt +++ b/source/whats-new.txt @@ -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::