module ActiveRecordBatchEnumerator
TODO: Remove this patch once all supported Rails versions include the changes upstream - github.com/rails/rails/pull/42312/commits/a031a43d969c87542c4ee8d0d338d55fcbb53376
Attributes
finish[R]
The primary key value at which the BatchEnumerator ends,
inclusive of the value.
relation[R]
The relation from which the BatchEnumerator yields batches.
start[R]
The primary key value from which the BatchEnumerator starts,
inclusive of the value.
Public Instance Methods
batch_size()
click to toggle source
The size of the batches yielded by the BatchEnumerator.
# File lib/patches/active_record_batch_enumerator.rb, line 18 def batch_size @of end