Object
# File lib/action_view/template/resolver.rb, line 13
13: def clear_cache
14: @cached.clear
15: end
Normalizes the arguments and passes it on to find_template.
# File lib/action_view/template/resolver.rb, line 18
18: def find_all(name, prefix=nil, partial=false, details={}, key=nil)
19: cached(key, prefix, name, partial) do
20: find_templates(name, prefix, partial, details)
21: end
22: end
# File lib/action_view/template/resolver.rb, line 37
37: def cached(key, prefix, name, partial)
38: return yield unless key && caching?
39: @cached[key][prefix][name][partial] ||= yield
40: end
# File lib/action_view/template/resolver.rb, line 26
26: def caching?
27: @caching ||= !defined?(Rails.application) || Rails.application.config.cache_classes
28: end
This is what child classes implement. No defaults are needed because Resolver guarantees that the arguments are present and normalized.
# File lib/action_view/template/resolver.rb, line 33
33: def find_templates(name, prefix, partial, details)
34: raise NotImplementedError
35: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.