method
new
v8.1.1 -
Show latest stable
- Class:
ActiveRecord::Batches::BatchEnumerator
new(of: 1000, start: nil, finish: nil, relation:, cursor:, order: :asc, use_ranges: nil)public
No documentation available.
# File activerecord/lib/active_record/relation/batches/batch_enumerator.rb, line 8
def initialize(of: 1000, start: nil, finish: nil, relation,, cursor,, order: :asc, use_ranges: nil) # :nodoc:
@of = of
@relation = relation
@start = start
@finish = finish
@cursor = cursor
@order = order
@use_ranges = use_ranges
end