class Jbuilder::CollectionRenderer

:nodoc:
Rails 6.1 support:

def collection_with_template(view, template, layout, collection)

def collection_with_template(view, template, layout, collection)
  super(view, template, layout, ScopedIterator.new(collection, @scope))
end

def collection_with_template(view, template)

def collection_with_template(view, template)
  @collection = ScopedIterator.new(@collection, @scope)
  super(view, template)
end

def collection_without_template(view)

def collection_without_template(view)
  @collection = ScopedIterator.new(@collection, @scope)
  super(view)
end

def initialize(lookup_context, options, &scope)

def initialize(lookup_context, options, &scope)
  super(lookup_context, options)
  @scope = scope
end

def initialize(lookup_context, options, &scope)

def initialize(lookup_context, options, &scope)
  super(lookup_context)
  @options = options
  @scope = scope
end

def render_collection_with_partial(collection, partial, context, block)

def render_collection_with_partial(collection, partial, context, block)
  render(context, @options.merge(collection: collection, partial: partial), block)
end