diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2017-07-07 14:49:05 +0200 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2017-07-07 14:49:05 +0200 |
commit | 5f9c84584efd5a7cbe19ada49fdccefbd5f54aea (patch) | |
tree | 0b5d591e04ea498e1c0dbaa9c18d9200709e930c /lib/feature.rb | |
parent | d40445e4c9964ae0ab793bfdd7ba530de4259716 (diff) | |
download | gitlab-ce-5f9c84584efd5a7cbe19ada49fdccefbd5f54aea.tar.gz |
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.
Diffstat (limited to 'lib/feature.rb')
0 files changed, 0 insertions, 0 deletions