1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

Fix Rails::Paths::Path.unshift interface
This commit is contained in:
Rafael Mendonça França 2014-11-12 12:51:02 -02:00
commit 4cd146bae5
2 changed files with 7 additions and 2 deletions

View file

@ -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`.

View file

@ -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