Class: ActionView::Resolver
- Defined in:
- actionview/lib/action_view/template/resolver.rb
Overview
Action View Resolver
Direct Known Subclasses
Defined Under Namespace
Instance Method Summary collapse
- #clear_cache ⇒ Object
-
#find_all(name, prefix = nil, partial = false, details = {}, key = nil, locals = []) ⇒ Object
(also: #find_all_anywhere)
Normalizes the arguments and passes it on to find_templates.
-
#find_all_with_query(query) ⇒ Object
:nodoc:.
-
#initialize ⇒ Resolver
constructor
A new instance of Resolver.
Constructor Details
Instance Method Details
#clear_cache ⇒ Object
111 112 113 |
# File 'actionview/lib/action_view/template/resolver.rb', line 111 def clear_cache @cache.clear end |
#find_all(name, prefix = nil, partial = false, details = {}, key = nil, locals = []) ⇒ Object Also known as: find_all_anywhere
Normalizes the arguments and passes it on to find_templates.
116 117 118 119 120 121 122 |
# File 'actionview/lib/action_view/template/resolver.rb', line 116 def find_all(name, prefix = nil, partial = false, details = {}, key = nil, locals = []) locals = locals.map(&:to_s).sort!.freeze cached(key, [name, prefix, partial], details, locals) do _find_all(name, prefix, partial, details, key, locals) end end |