Skip to content

Commit 8cdb1f5

Browse files
committed
[ci skip]Add missing do |record| to Active Job Continuation example
1 parent 194eb75 commit 8cdb1f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

activejob/lib/active_job/continuation.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module ActiveJob
3737
# end
3838
#
3939
# step(:process_records) do |step|
40-
# @import.records.find_each(start: step.cursor)
40+
# @import.records.find_each(start: step.cursor) do |record|
4141
# record.process
4242
# step.advance! from: record.id
4343
# end
@@ -48,7 +48,7 @@ module ActiveJob
4848
# end
4949
#
5050
# def reprocess_records(step)
51-
# @import.records.find_each(start: step.cursor)
51+
# @import.records.find_each(start: step.cursor) do |record|
5252
# record.reprocess
5353
# step.advance! from: record.id
5454
# end
@@ -99,7 +99,7 @@ module ActiveJob
9999
# over a collection of records where IDs may not be contiguous.
100100
#
101101
# step :process_records do |step|
102-
# import.records.find_each(start: step.cursor)
102+
# import.records.find_each(start: step.cursor) do |record|
103103
# record.process
104104
# step.advance! from: record.id
105105
# end

0 commit comments

Comments
 (0)