7.3.0
This feature release of Mongoid adds the following new functionality:
- MONGOID-5036 Delegate to driver's query cache middleware when available
- MONGOID-4812 Allow id to be a regular field in models (not an alias of _id)
- MONGOID-4906 Add missing general-purpose operators to embedded matchers
- MONGOID-4757 Mongoid now warns about unknown options given at top level in YAML configuration
The following significant changes were made:
- MONGOID-4753 Make global Boolean definition opt-in
- MONGOID-3468 Always touch parents of embedded documents when embedded documents are touched
- MONGOID-5023 Expand all conditions in a single argument together in
where
path - MONGOID-4706 Remove the internal Targets module
- MONGOID-5060 #delete no longer causes dependent associations to be destroyed
- MONGOID-5073
Mongoid.purge!
andMongoid.truncate
respect global persistence context overrides
The following bugs were fixed:
- MONGOID-4982 Cannot update a field on embedded association member, add another member and add a nested association to the first member in the same save call
- MONGOID-5020 Condition lifting breaks with symbol operators on Ruby <= 2.6
- MONGOID-5032 Hash attribute access/read_attribute fails on embedded field when parent loaded with only
Please see the upgrading documentation for more detailed descriptions of the changes.