instance method eager_load_templates

Ruby on Rails edge

Since edge

Signature

eager_load_templates(view = nil)

No documentation comment.

Parameters

view opt = nil
Source
# File actionview/lib/action_view/template/resolver.rb, line 113
    def eager_load_templates(view = nil)
      template_glob("**/*").each do |file|
        unbound = build_unbound_template(file)
        (@unbound_templates[unbound.virtual_path] ||= []) << unbound
        unbound.bind_locals([]).send(:compile!, view) if view
      end
    end

Defined in actionview/lib/action_view/template/resolver.rb line 113 · 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