From 5481cb4965c7f4a6a4fe33cab5fef46ffddc13f9 Mon Sep 17 00:00:00 2001 From: Ray Zane Date: Fri, 30 Mar 2018 14:23:47 -0400 Subject: [PATCH] Rename JoinExpression to Join --- lib/baby_squeel/active_record/query_methods.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/baby_squeel/active_record/query_methods.rb b/lib/baby_squeel/active_record/query_methods.rb index 5124df1..a9c585a 100644 --- a/lib/baby_squeel/active_record/query_methods.rb +++ b/lib/baby_squeel/active_record/query_methods.rb @@ -39,7 +39,7 @@ def when_having(&block) # This is a monkey patch, and I'm not happy about it. # Active Record will call `group_by` on the `joins`. The # Injector has a custom `group_by` method that handles - # BabySqueel::JoinExpression nodes. + # BabySqueel::Join nodes. if ::ActiveRecord::VERSION::MAJOR >= 5 && ::ActiveRecord::VERSION::MINOR >= 2 def build_joins(manager, joins, aliases) super manager, BabySqueel::JoinDependency::Injector.new(joins), aliases