Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposed release announcement:
Mongoid 8.0.9 is now available. This is the most recent patch release in the 8.0 series, and includes the following bug fixes.
Mongoid.prevent_multiple_calls_of_embedded_callbacks
setting to preserve backwards compatibility in most cases (defaults tofalse
).Mongoid.legacy_attributes
istrue
, the#as_document
method was returning a hash that leaked internal model state. The hash is now deep-duplicated before being returned (which may have performance implications for large documents or complex hashes).#includes
) was not producing the correct query when the root of the query was the document subclass.Mongoid::Timestamps
module would (in certain cases) attempt to timestamp deleted documents, which resulted in aFrozenError
being raised.