Added EachBatch for iterating tables in batches
This module provides a class method called `each_batch` that can be used
to iterate tables in batches in a more efficient way compared to Rails'
`in_batches` method. This commit also includes a RuboCop cop to
blacklist the use of `in_batches` in favour of this new method.
Showing
app/models/concerns/each_batch.rb
0 → 100644
rubocop/cop/in_batches.rb
0 → 100644
spec/models/concerns/each_batch_spec.rb
0 → 100644
spec/rubocop/cop/in_batches_spec.rb
0 → 100644
Please
register
or
sign in
to comment