still need to ensure the path is a directory

This commit is contained in:
Aaron Patterson 2012-03-26 16:08:33 -07:00
parent 33da24a8db
commit a2a861fcec
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ module Rails
each do |p| each do |p|
path = File.expand_path(p, @root.path) path = File.expand_path(p, @root.path)
if @glob if @glob && File.directory?(path)
result.concat Dir.chdir(path) { result.concat Dir.chdir(path) {
Dir.glob(@glob).map { |file| File.join path, file }.sort Dir.glob(@glob).map { |file| File.join path, file }.sort
} }