module AbstractController::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.dup + Array(path) 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 = Array(path) + view_paths.dup end
def view_paths
def view_paths _view_paths end
def view_paths=(paths)
* paths - If a ViewPathSet is provided, use that;
==== Parameters
Set the view paths.
def view_paths=(paths) self._view_paths = ActionView::Base.process_view_paths(paths) self._view_paths.freeze end