1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Change ActionView::ViewPathSet to ActionView::PathSet

This commit is contained in:
Manuel Meurer 2011-03-13 15:14:51 +07:00
parent c540b35441
commit deae670e9a

View file

@ -36,7 +36,7 @@ module AbstractController
# ==== Parameters # ==== Parameters
# * <tt>path</tt> - If a String is provided, it gets converted into # * <tt>path</tt> - If a String is provided, it gets converted into
# the default view path. You may also provide a custom view path # the default view path. You may also provide a custom view path
# (see ActionView::ViewPathSet for more information) # (see ActionView::PathSet for more information)
def append_view_path(path) def append_view_path(path)
self.view_paths = view_paths.dup + Array(path) self.view_paths = view_paths.dup + Array(path)
end end
@ -46,7 +46,7 @@ module AbstractController
# ==== Parameters # ==== Parameters
# * <tt>path</tt> - If a String is provided, it gets converted into # * <tt>path</tt> - If a String is provided, it gets converted into
# the default view path. You may also provide a custom view path # the default view path. You may also provide a custom view path
# (see ActionView::ViewPathSet for more information) # (see ActionView::PathSet for more information)
def prepend_view_path(path) def prepend_view_path(path)
self.view_paths = Array(path) + view_paths.dup self.view_paths = Array(path) + view_paths.dup
end end
@ -59,8 +59,8 @@ module AbstractController
# Set the view paths. # Set the view paths.
# #
# ==== Parameters # ==== Parameters
# * <tt>paths</tt> - If a ViewPathSet is provided, use that; # * <tt>paths</tt> - If a PathSet is provided, use that;
# otherwise, process the parameter into a ViewPathSet. # otherwise, process the parameter into a PathSet.
def view_paths=(paths) def view_paths=(paths)
self._view_paths = ActionView::Base.process_view_paths(paths) self._view_paths = ActionView::Base.process_view_paths(paths)
self._view_paths.freeze self._view_paths.freeze