Permalink
Browse files

Merge pull request #17593 from igas/paths-unshift-arity

Fix Rails::Paths::Path.unshift interface
  • Loading branch information...
2 parents 1361b67 + 56dc95b commit 4cd146bae5483cb0fdbde35b5340e9543e70dd1a @rafaelfranca rafaelfranca committed Nov 12, 2014
Showing with 7 additions and 2 deletions.
  1. +5 −0 railties/CHANGELOG.md
  2. +2 −2 railties/lib/rails/paths.rb
@@ -1,3 +1,8 @@
+* `Rails::Paths::Path.unshift` is now have the same interface as
+ `Array.unshift`.
+
+ *Igor Kapkov*
+
* `secret_token` is now saved in `Rails.application.secrets.secret_token`
and it falls back to the value of `config.secret_token` when it is not
present in `config/secrets.yml`.
@@ -167,8 +167,8 @@ def concat(paths)
@paths.concat paths
end
- def unshift(path)
- @paths.unshift path
+ def unshift(*paths)
+ @paths.unshift(*paths)
end
def to_ary

0 comments on commit 4cd146b

Please sign in to comment.