Mongoid 8.1.8 Released

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

Release Highlights

This is a patch release with the following bug fixes:

  • MONGOID-5810 – Internal model state was being leaked via #as_document, allowing the state to be unexpectedly mutated when the returned document was mutated.
  • MONGOID-5737 – Comparing a model with a non-model was causing an error.
  • MONGOID-5780 – Chaining multiple not predicates together was not toggling the negation state (e.g. Model.where.not.not.not)
  • MONGOID-5816attr_readonly was leaking into sibling classes, making it difficult to mark attributes read-only for only parts of an inheritance heirarchy.

Documentation

Documentation is available at MongoDB.com.

Installation

You may install this version via RubyGems, with:

gem install --version 8.1.8 mongoid