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:
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 @@ module Rails
|
|||
@paths.concat paths
|
||||
end
|
||||
|
||||
def unshift(path)
|
||||
@paths.unshift path
|
||||
def unshift(*paths)
|
||||
@paths.unshift(*paths)
|
||||
end
|
||||
|
||||
def to_ary
|
||||
|
|
Loading…
Reference in a new issue