Mongoid 8.0.4 is a patch release in 8.0 series with a few bug fixes:
- MONGOID-5520 Criteria ordering fails for non-numeric values (ex: { ‘$meta’ => ‘textScore’ })
- MONGOID-5539 Find requires Pipeline aggregation to be coerced into an array
- MONGOID-5582 Support shard keys based on subdocument fields
- MONGOID-5600 Mongoid 8 breaks “build”
The following additional improvements were made:
- MONGOID-5465 Single-value .in should convert to .where (resolve deprecated .in scalar value behavior)
- MONGOID-5590 Shard keys do not support fields with “.” in their name
- MONGOID-5560 delete_one on embeds_many is callable and is not consistent with delete
- MONGOID-5617 Improve performance of _matches?()