From 321345bf35cecce99f413f34a8dad3687109f292 Mon Sep 17 00:00:00 2001 From: Aiden Storey Date: Thu, 27 Jun 2024 14:33:48 +0000 Subject: [PATCH] Fix ActiveRecordRelations compiler to dedup #all --- lib/tapioca/dsl/compilers/active_record_relations.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tapioca/dsl/compilers/active_record_relations.rb b/lib/tapioca/dsl/compilers/active_record_relations.rb index 8660ffec0..4198d7290 100644 --- a/lib/tapioca/dsl/compilers/active_record_relations.rb +++ b/lib/tapioca/dsl/compilers/active_record_relations.rb @@ -190,7 +190,7 @@ def gather_constants # Grab all Spawn methods query_methods |= ActiveRecord::SpawnMethods.instance_methods(false) # Remove the ones we know are private API - query_methods -= [:arel, :build_subquery, :construct_join_dependency, :extensions, :spawn] + query_methods -= [:all, :arel, :build_subquery, :construct_join_dependency, :extensions, :spawn] # Remove "group" which needs a custom return type for GroupChains query_methods -= [:group] # Remove "where" which needs a custom return type for WhereChains