From 738fe0a0f5f031a4c812928fe5b31e9c9b6cc543 Mon Sep 17 00:00:00 2001 From: zhanghao Date: Fri, 27 Dec 2024 08:38:02 +0000 Subject: [PATCH] fix association_scope.rb --- lib/mongoid/association_scope.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/mongoid/association_scope.rb b/lib/mongoid/association_scope.rb index 57a37b8..7746ed8 100644 --- a/lib/mongoid/association_scope.rb +++ b/lib/mongoid/association_scope.rb @@ -12,8 +12,7 @@ module Mongoid module AssociationScope if Mongoid::VERSION >= "7.0.0" Mongoid::Association.include Macros - Mongoid::Association::Eager::Base.prepend Eager - Mongoid::Association::Metadata.prepend Metadata + Mongoid::Association::Referenced::Eager::Base.prepend Eager Mongoid::Association::Options.include Options [ Mongoid::Association::Referenced::BelongsTo,