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) 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) append_view_path(path)
25 26 27 |
# File 'actionpack/lib/abstract_controller/view_paths.rb', line 25 def append_view_path(path) lookup_context.view_paths.push(*path) end |
- (Object) details_for_lookup
21 22 23 |
# File 'actionpack/lib/abstract_controller/view_paths.rb', line 21 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.
17 18 19 |
# File 'actionpack/lib/abstract_controller/view_paths.rb', line 17 def lookup_context @lookup_context ||= ActionView::LookupContext.new(self.class._view_paths, details_for_lookup) end |
- (Object) prepend_view_path(path)
29 30 31 |
# File 'actionpack/lib/abstract_controller/view_paths.rb', line 29 def prepend_view_path(path) lookup_context.view_paths.unshift(*path) end |