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