class ActionView::CollectionRenderer::PreloadCollectionIterator
:nodoc:
def each_with_info
def each_with_info return super unless block_given? @relation.preload_associations(@collection) super end
def from_collection(collection)
def from_collection(collection) self.class.new(collection, @path, @variables, @relation) end
def initialize(collection, path, variables, relation)
def initialize(collection, path, variables, relation) super(collection, path, variables) relation.skip_preloading! unless relation.loaded? @relation = relation end