Class: ActionView::Resolver
Relationships & Source Files | |
Namespace Children | |
Classes:
| |
Extension / Inclusion / Inheritance Descendants | |
Subclasses:
ActionView::FallbackFileSystemResolver, FileSystemResolver, FixtureResolver, NullResolver, ActionView::OptimizedFileSystemResolver, ActionView::PathResolver
|
|
Inherits: | Object |
Defined in: | actionview/lib/action_view/template/resolver.rb |
Class Attribute Summary
Class Method Summary
- .caching (also: #caching, .caching?) rw
- .new ⇒ Resolver constructor
Instance Attribute Summary
- #caching rw
Instance Method Summary
- #caching? ⇒ Boolean rw
- #clear_cache
-
#find_all(name, prefix = nil, partial = false, details = {}, key = nil, locals = [])
Normalizes the arguments and passes it on to find_templates.
Constructor Details
.new ⇒ Resolver
Class Attribute Details
.caching? (rw)
Alias for .caching.
# File 'actionview/lib/action_view/template/resolver.rb', line 139
alias :caching? :caching
Class Method Details
.caching (rw) Also known as: #caching, .caching?
[ GitHub ]# File 'actionview/lib/action_view/template/resolver.rb', line 136
cattr_accessor :caching, default: true
Instance Attribute Details
#caching (rw)
[ GitHub ]# File 'actionview/lib/action_view/template/resolver.rb', line 136
cattr_accessor :caching, default: true
Instance Method Details
#caching? ⇒ Boolean
(rw)
# File 'actionview/lib/action_view/template/resolver.rb', line 168
delegate :caching?, to: :class
#clear_cache
[ GitHub ]# File 'actionview/lib/action_view/template/resolver.rb', line 146
def clear_cache @cache.clear end
#find_all(name, prefix = nil, partial = false, details = {}, key = nil, locals = [])
Normalizes the arguments and passes it on to find_templates.
# File 'actionview/lib/action_view/template/resolver.rb', line 151
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