提交 56dc95bc 编写于 作者: I Igor Kapkov

Fix Rails::Paths::Path.unshift interface

上级 46f17279
* `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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册