instance method
eager_load_templates
Ruby on Rails edge
Since edgeSignature
eager_load_templates(view = nil)
No documentation comment.
Parameters
-
viewopt = 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