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.
- #find_all_anywhere(name, prefix, partial = false, details = {}, key = nil, locals = [])
Constructor Details
.new ⇒ Resolver
Class Attribute Details
.caching? (rw)
Alias for .caching.
# File 'actionview/lib/action_view/template/resolver.rb', line 133
alias :caching? :caching
Class Method Details
.caching (rw) Also known as: #caching, .caching?
[ GitHub ]# File 'actionview/lib/action_view/template/resolver.rb', line 130
cattr_accessor :caching, default: true
Instance Attribute Details
#caching (rw)
[ GitHub ]# File 'actionview/lib/action_view/template/resolver.rb', line 130
cattr_accessor :caching, default: true
Instance Method Details
#caching? ⇒ Boolean
(rw)
# File 'actionview/lib/action_view/template/resolver.rb', line 163
delegate :caching?, to: :class
#clear_cache
[ GitHub ]# File 'actionview/lib/action_view/template/resolver.rb', line 140
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 145
def find_all(name, prefix = nil, partial = false, details = {}, key = nil, locals = []) cached(key, [name, prefix, partial], details, locals) do find_templates(name, prefix, partial, details) end end
#find_all_anywhere(name, prefix, partial = false, details = {}, key = nil, locals = [])
[ GitHub ]# File 'actionview/lib/action_view/template/resolver.rb', line 151
def find_all_anywhere(name, prefix, partial = false, details = {}, key = nil, locals = []) cached(key, [name, prefix, partial], details, locals) do find_templates(name, prefix, partial, details, true) end end