method
new
rails latest stable - Class:
ActiveRecord::Batches::BatchEnumerator
new(of: 1000, start: nil, finish: nil, relation:, 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,, order: :asc, use_ranges: nil) # :nodoc:
@of = of
@relation = relation
@start = start
@finish = finish
@order = order
@use_ranges = use_ranges
end