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

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