From 45ed9a31281b2631bd7225db4ab52f2a83c5be61 Mon Sep 17 00:00:00 2001 From: Darshana Venkatesh Date: Fri, 13 Dec 2024 14:05:51 -0800 Subject: [PATCH] removed redefine load_async warning --- lib/mongoid/contextual.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mongoid/contextual.rb b/lib/mongoid/contextual.rb index fe0024be7e..b34aac87cd 100644 --- a/lib/mongoid/contextual.rb +++ b/lib/mongoid/contextual.rb @@ -23,7 +23,7 @@ module Contextual # The methods in the contexts themselves should all get delegated to, # including destructive, modification, and optional methods. - def_delegators :context, *(Mongo.public_instance_methods(false) - [ :skip, :limit ]) + def_delegators :context, *(Mongo.public_instance_methods(false) - [ :skip, :limit, :load_async ]) # This gets blank and empty included. def_delegators :context, *Queryable.public_instance_methods(false)