Method: AbstractController::ViewPaths::ClassMethods#prepend_view_path
- Defined in:
- lib/abstract_controller/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::ViewPathSet for more information)
50 51 52 |
# File 'lib/abstract_controller/view_paths.rb', line 50 def prepend_view_path(path) self.view_paths = Array(path) + view_paths.dup end |