instance method
collection_without_template
Ruby on Rails 4.1.16
Since v3.2.22.5 Last seen in v6.0.6 PrivateSignature
collection_without_template()
No documentation comment.
Source
# 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
Defined in actionview/lib/action_view/renderer/partial_renderer.rb line 405
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::PartialRenderer