Method: ActionView::ViewPaths::ClassMethods#prepend_view_path

Defined in:
actionview/lib/action_view/view_paths.rb

#prepend_view_path(path) ⇒ Object

Prepend a path to the list of view paths for this controller.

Parameters

  • path - If a String is provided, it gets converted into the default view path. You may also provide a custom view path (see ActionView::PathSet for more information)



54
55
56
# File 'actionview/lib/action_view/view_paths.rb', line 54

def prepend_view_path(path)
  self._view_paths = _build_view_paths(path) + view_paths
end