Skip to content

Commit

Permalink
add default for #next_batch
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianna-chang-shopify committed May 7, 2021
1 parent 7ef5a5a commit 79ffa6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/job-iteration/active_record_cursor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def update_from_record(record)
end
end

def next_batch(batch_size, as_relation)
def next_batch(batch_size, as_relation = false)
return nil if @reached_end

relation = @base_relation.limit(batch_size)
Expand Down

0 comments on commit 79ffa6c

Please sign in to comment.