14
15
16
17
18
19
20
21
22
|
# File 'lib/progress/active_record.rb', line 14
def find_in_batches_with_progress(options = {})
Progress.start(name.tableize, count(options)) do
find_in_batches do |batch|
Progress.step batch.length do
yield batch
end
end
end
end
|