diff --git a/spec/union_spec.rb b/spec/union_spec.rb index 431b02f..b0565db 100644 --- a/spec/union_spec.rb +++ b/spec/union_spec.rb @@ -41,8 +41,10 @@ end def bind_values_from_relation(relation) + collector = Arel::Collectors::Bind.new + collector.define_singleton_method(:preparable=) { |_preparable| } if ActiveRecord.version.between?(Gem::Version.new("6.1.0"), Gem::Version.new("7.2.99")) relation.arel_table.class.engine.connection.visitor.accept( - relation.arel.ast, Arel::Collectors::Bind.new + relation.arel.ast, collector ).value.map(&:value) end