module ActionView::ViewPaths::ClassMethods
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 this controller.
def append_view_path(path) self._view_paths = view_paths + Array(path) end
def parent_prefixes
def parent_prefixes @parent_prefixes ||= begin parent_controller = superclass prefixes = [] until parent_controller.abstract? prefixes << parent_controller.controller_path parent_controller = parent_controller.superclass end prefixes end 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 this controller.
def prepend_view_path(path) self._view_paths = ActionView::PathSet.new(Array(path) + view_paths) end
def view_paths
def view_paths _view_paths end
def view_paths=(paths)
* paths - If a PathSet is provided, use that;
==== Parameters
Set the view paths.
def view_paths=(paths) self._view_paths = ActionView::PathSet.new(Array(paths)) end