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

Fix Rails::Paths::Path.unshift interface

This commit is contained in:
Igor Kapkov 2014-11-12 16:27:42 +08:00
parent 46f172798e
commit 56dc95bc92
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