Module: AbstractController::ViewPaths
- Extended by:
- ActiveSupport::Concern
- Defined in:
- actionpack/lib/abstract_controller/view_paths.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary (collapse)
-
- (Object) _prefixes
The prefixes used in render "foo" shortcuts.
- - (Object) append_view_path(path)
- - (Object) details_for_lookup
-
- (Object) lookup_context
LookupContext is the object responsible to hold all information required to lookup templates, i.e.
- - (Object) prepend_view_path(path)
Methods included from ActiveSupport::Concern
append_features, extended, included
Instance Method Details
- (Object) _prefixes
The prefixes used in render "foo" shortcuts.
31 32 33 34 35 36 |
# File 'actionpack/lib/abstract_controller/view_paths.rb', line 31 def _prefixes @_prefixes ||= begin parent_prefixes = self.class.parent_prefixes parent_prefixes.dup.unshift(controller_path) end end |
- (Object) append_view_path(path)
50 51 52 |
# File 'actionpack/lib/abstract_controller/view_paths.rb', line 50 def append_view_path(path) lookup_context.view_paths.push(*path) end |
- (Object) details_for_lookup
46 47 48 |
# File 'actionpack/lib/abstract_controller/view_paths.rb', line 46 def details_for_lookup { } end |
- (Object) lookup_context
LookupContext is the object responsible to hold all information required to lookup templates, i.e. view paths and details. Check ActionView::LookupContext for more information.
41 42 43 44 |
# File 'actionpack/lib/abstract_controller/view_paths.rb', line 41 def lookup_context @_lookup_context ||= ActionView::LookupContext.new(self.class._view_paths, details_for_lookup, _prefixes) end |
- (Object) prepend_view_path(path)
54 55 56 |
# File 'actionpack/lib/abstract_controller/view_paths.rb', line 54 def prepend_view_path(path) lookup_context.view_paths.unshift(*path) end |