module ActionView::ViewPaths
def self.all_view_paths
def self.all_view_paths @all_view_paths.values.uniq end
def self.get_view_paths(klass)
def self.get_view_paths(klass) @all_view_paths[klass] || get_view_paths(klass.superclass) end
def self.set_view_paths(klass, paths)
def self.set_view_paths(klass, paths) @all_view_paths[klass] = paths end
def _prefixes # :nodoc:
The prefixes used in render "foo" shortcuts.
def _prefixes # :nodoc: self.class._prefixes end
def append_view_path(path)
the default view path. You may also provide a custom view path
* path - If a String is provided, it gets converted into
==== Parameters
Append a path to the list of view paths for the current LookupContext.
def append_view_path(path) lookup_context.view_paths.push(*path) end
def details_for_lookup
def details_for_lookup {} end
def lookup_context
information required for looking up templates, i.e. view paths and
LookupContext is the object responsible for holding all
def lookup_context @_lookup_context ||= ActionView::LookupContext.new(self.class._view_paths, details_for_lookup, _prefixes) end
def prepend_view_path(path)
the default view path. You may also provide a custom view path
* path - If a String is provided, it gets converted into
==== Parameters
Prepend a path to the list of view paths for the current LookupContext.
def prepend_view_path(path) lookup_context.view_paths.unshift(*path) end