Permalink
Browse files

still need to ensure the path is a directory

  • Loading branch information...
1 parent 33da24a commit a2a861fcecf40134a4be7735d96896c0d884f670 @tenderlove tenderlove committed Mar 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/paths.rb
@@ -155,7 +155,7 @@ def expanded
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
}

0 comments on commit a2a861f

Please sign in to comment.