From 60355871645ce35de940587209125580008cb840 Mon Sep 17 00:00:00 2001 From: Alexander Kustov Date: Fri, 11 Nov 2016 17:31:20 +0000 Subject: better docs for ActionView::ViewPaths#prepend_view_path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ✂️ extra line --- actionview/lib/action_view/view_paths.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'actionview/lib/action_view/view_paths.rb') diff --git a/actionview/lib/action_view/view_paths.rb b/actionview/lib/action_view/view_paths.rb index b5cde5b43f..a9638d1e6d 100644 --- a/actionview/lib/action_view/view_paths.rb +++ b/actionview/lib/action_view/view_paths.rb @@ -46,10 +46,22 @@ module ActionView {} end + # Append 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) def append_view_path(path) lookup_context.view_paths.push(*path) end + # 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) def prepend_view_path(path) lookup_context.view_paths.unshift(*path) end -- cgit v1.2.3