Skip to content

9.0.4

Latest
Compare
Choose a tag to compare
@mongodb-dbx-release-bot mongodb-dbx-release-bot released this 08 Jan 22:09
· 22 commits to master since this release
73d061c

Version 9.0.4 of the Mongoid ODM for MongoDB is now available.

Release Highlights

There is one new feature in this release:

MONGOID-5829 adds Mongoid.ignore_paths, which specifies an array of glob patterns. Any file matching any of these patterns will not be automatically loaded during autoloading (e.g. Mongoid.load_models). This fixes a problem encountered when non-model files (e.g. "concerns") are stored under the traditional model directories.

The following bug fixes are included in this release.

  • MONGOID-5830 fixes a bug caused by an earlier optimization that forgot to account for the fact that the client name may be provided a as a Proc.
  • MONGOID-5831 fixes an incompatibility with Rails 8.0.1 and later due to the inadvertent use of an internal Rails API.
  • MONGOID-5737 fixes an error that occurred when comparing a Mongoid::Document instance with an object that was not a Mongoid::Document instance.
  • MONGOID-5780 ensures that calling not multiple times (e.g. Model.where.not.not) will toggle the criteria's negation state, rather than simply setting it to true.
  • MONGOID-5816 prevents attr_readonly from leaking into sibling classes, which was making it difficult to specify that certain attributes are only read-only in certain parts of an inheritance tree.

Documentation

Documentation is available at MongoDB.com.

Installation

You may install this version via RubyGems, with:

gem install --version 9.0.4 mongoid

Full Changelog: v9.0.3...v9.0.4