1
0
Fork 0
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:
Aaron Patterson 2012-03-26 16:08:33 -07:00
parent 33da24a8db
commit a2a861fcec

View file

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