module ActionView::ViewPaths::ClassMethods

Public Instance Methods

_view_paths() Show source
# File actionview/lib/action_view/view_paths.rb, line 15
def _view_paths
  ViewPaths.get_view_paths(self)
end
_view_paths=(paths) Show source
# File actionview/lib/action_view/view_paths.rb, line 19
def _view_paths=(paths)
  ViewPaths.set_view_paths(self, paths)
end
append_view_path(path) Show source
# File actionview/lib/action_view/view_paths.rb, line 100
def append_view_path(path)
  self._view_paths = view_paths + Array(path)
end

Append 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)

prepend_view_path(path) Show source
# File actionview/lib/action_view/view_paths.rb, line 110
def prepend_view_path(path)
  self._view_paths = ActionView::PathSet.new(Array(path) + view_paths)
end

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)

view_paths() Show source
# File actionview/lib/action_view/view_paths.rb, line 115
def view_paths
  _view_paths
end

A list of all of the default view paths for this controller.

view_paths=(paths) Show source
# File actionview/lib/action_view/view_paths.rb, line 124
def view_paths=(paths)
  self._view_paths = ActionView::PathSet.new(Array(paths))
end

Set the view paths.

Parameters

  • paths - If a PathSet is provided, use that; otherwise, process the parameter into a PathSet.

© 2004–2019 David Heinemeier Hansson
Licensed under the MIT License.