Skip to content

Commit

Permalink
Array#+ automatically dups, no double duping
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Aug 9, 2011
1 parent 14a8fd1 commit 88de343
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actionpack/lib/abstract_controller/view_paths.rb
Expand Up @@ -63,7 +63,7 @@ module ClassMethods
# the default view path. You may also provide a custom view path
# (see ActionView::PathSet for more information)
def append_view_path(path)
self.view_paths = view_paths.dup + Array(path)
self.view_paths = view_paths + Array(path)
end

# Prepend a path to the list of view paths for this controller.
Expand All @@ -73,7 +73,7 @@ def append_view_path(path)
# the default view path. You may also provide a custom view path
# (see ActionView::PathSet for more information)
def prepend_view_path(path)
self.view_paths = Array(path) + view_paths.dup
self.view_paths = Array(path) + view_paths
end

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

0 comments on commit 88de343

Please sign in to comment.