Browse files

Array#+ automatically dups, no double duping

  • Loading branch information...
1 parent 14a8fd1 commit 88de343ef4ed314e0134a16c2810e11e482ff481 @tenderlove tenderlove committed Aug 9, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/abstract_controller/view_paths.rb
View
4 actionpack/lib/abstract_controller/view_paths.rb
@@ -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.
@@ -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.

0 comments on commit 88de343

Please sign in to comment.