aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/abstract_controller/view_paths.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-08-09 10:54:05 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2011-08-09 10:54:05 -0700
commit88de343ef4ed314e0134a16c2810e11e482ff481 (patch)
tree48fa5148922f74ef1665e3ac4cd3c8b2e4ebdebd /actionpack/lib/abstract_controller/view_paths.rb
parent14a8fd146a64f7ed8399339fa5bc0200b54838ea (diff)
downloadrails-88de343ef4ed314e0134a16c2810e11e482ff481.tar.gz
rails-88de343ef4ed314e0134a16c2810e11e482ff481.tar.bz2
rails-88de343ef4ed314e0134a16c2810e11e482ff481.zip
Array#+ automatically dups, no double duping
Diffstat (limited to 'actionpack/lib/abstract_controller/view_paths.rb')
-rw-r--r--actionpack/lib/abstract_controller/view_paths.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/abstract_controller/view_paths.rb b/actionpack/lib/abstract_controller/view_paths.rb
index 6b7aae8c74..4980576bcd 100644
--- a/actionpack/lib/abstract_controller/view_paths.rb
+++ b/actionpack/lib/abstract_controller/view_paths.rb
@@ -63,7 +63,7 @@ module AbstractController
# 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 @@ module AbstractController
# 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.