aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-11-12 12:51:02 -0200
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-11-12 12:51:02 -0200
commit4cd146bae5483cb0fdbde35b5340e9543e70dd1a (patch)
tree4af8ab00aebfd3ec96b79d9e3d42c75ed8678710 /railties/lib/rails
parent1361b676d3a51aa0fca299f432e75032dd29a9d9 (diff)
parent56dc95bc92301dae89e5d6b5ca306b043b095661 (diff)
downloadrails-4cd146bae5483cb0fdbde35b5340e9543e70dd1a.tar.gz
rails-4cd146bae5483cb0fdbde35b5340e9543e70dd1a.tar.bz2
rails-4cd146bae5483cb0fdbde35b5340e9543e70dd1a.zip
Merge pull request #17593 from igas/paths-unshift-arity
Fix Rails::Paths::Path.unshift interface
Diffstat (limited to 'railties/lib/rails')
-rw-r--r--railties/lib/rails/paths.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/paths.rb b/railties/lib/rails/paths.rb
index 3eb66c07af..d11804af17 100644
--- a/railties/lib/rails/paths.rb
+++ b/railties/lib/rails/paths.rb
@@ -167,8 +167,8 @@ module Rails
@paths.concat paths
end
- def unshift(path)
- @paths.unshift path
+ def unshift(*paths)
+ @paths.unshift(*paths)
end
def to_ary