method
collection_without_template
v4.1.8 -
Show latest stable
- Class:
ActionView::PartialRenderer
collection_without_template()private
No documentation available.
# File actionview/lib/action_view/renderer/partial_renderer.rb, line 405
def collection_without_template
view, locals, collection_data = @view, @locals, @collection_data
cache = {}
keys = @locals.keys
index = -1
@collection.map do |object|
index += 1
path, as, counter = collection_data[index]
locals[as] = object
locals[counter] = index
template = (cache[path] ||= find_template(path, keys + [as, counter]))
template.render(view, locals)
end
end