- Allow installing this library with Mongoid
8.0
.
- Add support for Mongoid
7.1
. - Avoid making a query when the foreign keys are empty.
- Fix bug where
includes
ignores the:with
option if the association is polymorphic. Thanks @nickcherry for the bug report!
- Support Mongoid 6.0.1, fixes related to changes in Mongoid internals. Thanks @mityakoval and @forumd for the bug reports!
- Fix eager loading for self-referencing associations. Thanks @rmachielse!
- Change gem dependencies to support Mongoid 6. Thanks @joostverdoorn!
- Fix bug with nested includes when the related document is
nil
.
- Fix bug with optional polymorphic
belongs_to
relations where the name of the relation does not match an actual class name.
- Add support for Mongoid 5.
- Fix error when using
merge
ormerge!
with a criteria andincludes
. - Replace the internal structure with a Set to be more robust when avoiding duplicate relations.
- Fix error messages for polymorphic includes.
- Add :with option that receives the criteria that will be used to include documents.
- Initial Version.