Method: ActionView::ViewPaths#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 the current LookupContext.

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)



113
114
115
# File 'actionview/lib/action_view/view_paths.rb', line 113

def prepend_view_path(path)
  lookup_context.prepend_view_paths(self.class._build_view_paths(path))
end