instance method unbound_templates_for

Ruby on Rails edge

Since edge Private — implementation detail, not part of the public API

Signature

unbound_templates_for(name, prefix, partial, cached)

No documentation comment.

Parameters

name req
prefix req
partial req
cached req
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

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close