instance method
collection_without_template
Ruby on Rails 3.2.22.5
Since v3.2.22.5 Last seen in v6.0.6 PrivateSignature
collection_without_template()
No documentation comment.
Source
# File actionpack/lib/action_view/renderer/partial_renderer.rb, line 357
def collection_without_template
segments, locals, collection_data = [], @locals, @collection_data
index, template, cache = -1, nil, {}
keys = @locals.keys
@collection.each_with_index do |object, i|
path, *data = collection_data[i]
template = (cache[path] ||= find_template(path, keys + data))
locals[data[0]] = object
locals[data[1]] = (index += 1)
segments << template.render(@view, locals)
end
@template = template
segments
end
Defined in actionpack/lib/action_view/renderer/partial_renderer.rb line 357
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::PartialRenderer