Skip to content

Commit

Permalink
Fix unknown attribute reference error
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkSiemers-msr committed May 21, 2024
1 parent d8b852e commit fba2b54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/job-iteration/active_record_batch_enumerator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fba2b54

Please sign in to comment.