Release candidate for Mongoid 9.0.11#6135
Closed
jamis wants to merge 1 commit intomongodb:9.0-stablefrom
Closed
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Prepares the Mongoid 9.0.11 release candidate by updating the project’s version metadata to the new patch release number.
Changes:
- Bumped the release version in
product.ymlto 9.0.11. - Updated
Mongoid::VERSIONto 9.0.11 inlib/mongoid/version.rb.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| product.yml | Updates the release metadata version number to 9.0.11. |
| lib/mongoid/version.rb | Updates the gem’s runtime VERSION constant to 9.0.11. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
comandeo-mongo
approved these changes
Apr 23, 2026
Contributor
Author
|
Closing so we can get Ruby 4.0 support in. I'll open another PR when that is ready. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The MongoDB Ruby team is pleased to announce version 9.0.11 of the
mongoidgem - a Ruby ODM for MongoDB. This is a new patch release in the 9.0.x series of Mongoid.Install this release using RubyGems via the command line as follows:
Or simply add it to your
Gemfile:Have any feedback? Click on through to MongoDB's JIRA and open a new ticket to let us know what's on your mind 🧠.
New Features
MONGOID-5930 Add Mongoid::Config.allow_reparenting_via_nested_attributes (PR)
Add
Mongoid::Config.allow_reparenting_via_nested_attributes, defaulting totrue. When false, this prevents dependent has_many records from being reparented via use of nested attributes. When true, records may be reparented via nested attributes.This setting will default to
falsein Mongoid 9.1, and will be removed in Mongoid 10.MONGOID-5751 avoid unnecessary autosaves of unchanged subtrees (PR)
The legacy behavior of associations with
autosave: trueresulted in all#savebeing invoked on all children of those associations, whether those children actually needed it or not. All correspondingafter_savehooks were invoked as well, recursively, clear to the bottom of the autosave tree.This PR adds an option to change this behavior, ensuring that subtrees are only autosaved if there are any changed documents in the subtree.
The default is
true, allowing the legacy behavior to prevail. If your program depends on this legacy behavior, you are encouraged to rewrite the affected code and set the value tofalse. The default value of this option will befalsein Mongoid 9.1, and will go away in Mongoid 10. At that point the legacy autosave behavior will be removed.