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 102
alias :caching? :caching
Class Method Details
.caching (rw) Also known as: #caching, .caching?
[ GitHub ]# File 'actionview/lib/action_view/template/resolver.rb', line 98
cattr_accessor :caching
Instance Attribute Details
#caching (rw)
[ GitHub ]# File 'actionview/lib/action_view/template/resolver.rb', line 98
cattr_accessor :caching
Instance Method Details
#caching? ⇒ Boolean
(rw)
# File 'actionview/lib/action_view/template/resolver.rb', line 128
delegate :caching?, to: :class
#clear_cache
[ GitHub ]# File 'actionview/lib/action_view/template/resolver.rb', line 109
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 114
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, false) end end
#find_all_anywhere(name, prefix, partial = false, details = {}, key = nil, locals = [])
[ GitHub ]# File 'actionview/lib/action_view/template/resolver.rb', line 120
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