instance method
unbound_templates_for
Ruby on Rails edge
Since edge Private — implementation detail, not part of the public APISignature
unbound_templates_for(name, prefix, partial, cached)
No documentation comment.
Parameters
-
namereq -
prefixreq -
partialreq -
cachedreq
Source
# File actionview/lib/action_view/template/resolver.rb, line 175
def unbound_templates_for(name, prefix, partial, cached)
return @unbound_templates[TemplatePath.virtual(name, prefix, partial)] || [].freeze if frozen?
return unbound_templates_from_path(TemplatePath.build(name, prefix, partial)) unless cached
@unbound_templates.compute_if_absent(TemplatePath.virtual(name, prefix, partial)) do
unbound_templates_from_path(TemplatePath.build(name, prefix, partial))
end
end
Defined in actionview/lib/action_view/template/resolver.rb line 175
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::FileSystemResolver