mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
still need to ensure the path is a directory
This commit is contained in:
parent
33da24a8db
commit
a2a861fcec
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ module Rails
|
|||
each do |p|
|
||||
path = File.expand_path(p, @root.path)
|
||||
|
||||
if @glob
|
||||
if @glob && File.directory?(path)
|
||||
result.concat Dir.chdir(path) {
|
||||
Dir.glob(@glob).map { |file| File.join path, file }.sort
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue