Skip to content

Release candidate for Mongoid 9.0.11#6135

Closed
jamis wants to merge 1 commit intomongodb:9.0-stablefrom
jamis:rc-9.0.11
Closed

Release candidate for Mongoid 9.0.11#6135
jamis wants to merge 1 commit intomongodb:9.0-stablefrom
jamis:rc-9.0.11

Conversation

@jamis
Copy link
Copy Markdown
Contributor

@jamis jamis commented Apr 23, 2026

The MongoDB Ruby team is pleased to announce version 9.0.11 of the mongoid gem - 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:

gem install -v 9.0.11 mongoid

Or simply add it to your Gemfile:

gem 'mongoid', '9.0.11'

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 to true. 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 false in 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: true resulted in all #save being invoked on all children of those associations, whether those children actually needed it or not. All corresponding after_save hooks 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.

Mongoid.autosave_saves_unchanged_documents = true

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 to false. The default value of this option will be false in Mongoid 9.1, and will go away in Mongoid 10. At that point the legacy autosave behavior will be removed.

@jamis jamis requested a review from a team as a code owner April 23, 2026 14:36
@jamis jamis added the release-candidate The PR represents a potential candidate for a new release label Apr 23, 2026
@jamis jamis requested review from comandeo-mongo and Copilot April 23, 2026 14:36
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.yml to 9.0.11.
  • Updated Mongoid::VERSION to 9.0.11 in lib/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.

@jamis
Copy link
Copy Markdown
Contributor Author

jamis commented Apr 23, 2026

Closing so we can get Ruby 4.0 support in. I'll open another PR when that is ready.

@jamis jamis closed this Apr 23, 2026
@jamis jamis deleted the rc-9.0.11 branch April 24, 2026 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-candidate The PR represents a potential candidate for a new release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants