Class: ActionView::Resolver
| Relationships & Source Files | |
| Namespace Children | |
|
Classes:
| |
| Extension / Inclusion / Inheritance Descendants | |
|
Subclasses:
|
|
| Inherits: | Object |
| Defined in: | actionview/lib/action_view/template/resolver.rb |
Class Attribute Summary
Class Method Summary
- .caching (also: #caching, .caching?) rw
Instance Attribute Summary
- #caching rw
Instance Method Summary
- #caching? ⇒ Boolean rw
- #clear_cache
- #find(name, prefix = nil, partial = false, details = {}, key = nil, locals = [])
- #find_all(name, prefix = nil, partial = false, details = {}, key = nil, locals = [])
-
#find_templates(name, prefix, partial, details, locals = [])
private
Extension point for custom resolvers: implement this method, or override find_all/find directly.
- #all_template_paths Internal use only
- #built_templates Internal use only
Class Attribute Details
.caching? (rw)
Alias for .caching.
# File 'actionview/lib/action_view/template/resolver.rb', line 61
alias :caching? :caching
Class Method Details
.caching (rw) Also known as: #caching, .caching?
[ GitHub ]# File 'actionview/lib/action_view/template/resolver.rb', line 58
cattr_accessor :caching, default: true
Instance Attribute Details
#caching (rw)
[ GitHub ]# File 'actionview/lib/action_view/template/resolver.rb', line 58
cattr_accessor :caching, default: true
Instance Method Details
#all_template_paths
This method is for internal use only.
[ GitHub ]
# File 'actionview/lib/action_view/template/resolver.rb', line 80
def all_template_paths # :nodoc: # Not implemented by default [] end
#built_templates
This method is for internal use only.
[ GitHub ]
# File 'actionview/lib/action_view/template/resolver.rb', line 75
def built_templates # :nodoc: # Used for error pages [] end
#caching? ⇒ Boolean (rw)
# File 'actionview/lib/action_view/template/resolver.rb', line 86
delegate :caching?, to: :class
#clear_cache
[ GitHub ]# File 'actionview/lib/action_view/template/resolver.rb', line 64
def clear_cache end
#find(name, prefix = nil, partial = false, details = {}, key = nil, locals = [])
[ GitHub ]# File 'actionview/lib/action_view/template/resolver.rb', line 71
def find(name, prefix = nil, partial = false, details = {}, key = nil, locals = []) find_all(name, prefix, partial, details, key, locals).first end
#find_all(name, prefix = nil, partial = false, details = {}, key = nil, locals = [])
[ GitHub ]# File 'actionview/lib/action_view/template/resolver.rb', line 67
def find_all(name, prefix = nil, partial = false, details = {}, key = nil, locals = []) find_templates(name, prefix, partial, details, locals) end
#find_templates(name, prefix, partial, details, locals = []) (private)
Extension point for custom resolvers: implement this method, or override find_all/find directly.
# File 'actionview/lib/action_view/template/resolver.rb', line 90
def find_templates(name, prefix, partial, details, locals = []) raise NotImplementedError, "Subclasses must implement a find_templates(name, prefix, partial, details, locals = []) method" end