edge badge
Namespace
Methods
#
A
D
L
P
Instance Public methods
_prefixes()

The prefixes used in render “foo” shortcuts.

# File actionpack/lib/abstract_controller/view_paths.rb, line 33
def _prefixes
  @_prefixes ||= begin
    parent_prefixes = self.class.parent_prefixes
    parent_prefixes.dup.unshift(controller_path)
  end
end
append_view_path(path)
# File actionpack/lib/abstract_controller/view_paths.rb, line 52
def append_view_path(path)
  lookup_context.view_paths.push(*path)
end
details_for_lookup()
# File actionpack/lib/abstract_controller/view_paths.rb, line 48
def details_for_lookup
  { }
end
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.

# File actionpack/lib/abstract_controller/view_paths.rb, line 43
def lookup_context
  @_lookup_context ||=
    ActionView::LookupContext.new(self.class._view_paths, details_for_lookup, _prefixes)
end
prepend_view_path(path)
# File actionpack/lib/abstract_controller/view_paths.rb, line 56
def prepend_view_path(path)
  lookup_context.view_paths.unshift(*path)
end