From fba2b54548735064ff68648f91ce5f85b6bb430c Mon Sep 17 00:00:00 2001 From: Mark Siemers Date: Tue, 21 May 2024 15:40:48 -0400 Subject: [PATCH] Fix unknown attribute reference error --- lib/job-iteration/active_record_batch_enumerator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/job-iteration/active_record_batch_enumerator.rb b/lib/job-iteration/active_record_batch_enumerator.rb index 3972693f..582225a3 100644 --- a/lib/job-iteration/active_record_batch_enumerator.rb +++ b/lib/job-iteration/active_record_batch_enumerator.rb @@ -29,7 +29,7 @@ def initialize(relation, columns: nil, batch_size: 100, cursor: nil) raise JobIteration::ActiveRecordCursor::ConditionNotSupportedError end - @base_relation = relation.reorder(@columns.join(",")) + @base_relation = relation.reorder(*@columns) end def each