Mongoid 9.0.6, 8.1.10, and 8.0.10 are the latest patch releases in the 9.0, 8.1, and 8.0 series of the Mongoid ODM for MongoDB. They all include the following bug fix:
- MONGOID-5844: querying the number of elements in a
has_and_belongs_to_many
association could return the wrong count in specific situations.
You may install these via Rubygems:
gem install --version 9.0.6 mongoid # for 9.0.6
gem install --version 8.1.10 mongoid # for 8.1.10
gem install --version 8.0.10 mongoid # for 8.0.10
Or via a Gemfile
:
gem 'mongoid', '9.0.6' # for 9.0.6
gem 'mongoid', '8.1.10' # for 8.1.10
gem 'mongoid', '8.0.10' # for 8.0.10