instance method
load_all_templates_from_dir
Ruby on Rails 2.3.18
Since v2.3.18 Last seen in v2.3.18 PrivateSignature
load_all_templates_from_dir(dir)
load all templates from the directory of the requested template
Parameters
-
dirreq
Source
# File actionpack/lib/action_view/reloadable_template.rb, line 60
def load_all_templates_from_dir(dir)
# hit disk only once per template-dir/request
@disk_cache[dir] ||= template_files_from_dir(dir).each {|template_file| register_template_from_file(template_file)}
end
Defined in actionpack/lib/action_view/reloadable_template.rb line 60
· View on GitHub
· Improve this page
· Find usages on GitHub