Skip to content

Commit fba2b54

Browse files
Fix unknown attribute reference error
1 parent d8b852e commit fba2b54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/job-iteration/active_record_batch_enumerator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def initialize(relation, columns: nil, batch_size: 100, cursor: nil)
2929
raise JobIteration::ActiveRecordCursor::ConditionNotSupportedError
3030
end
3131

32-
@base_relation = relation.reorder(@columns.join(","))
32+
@base_relation = relation.reorder(*@columns)
3333
end
3434

3535
def each

0 commit comments

Comments
 (0)