Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

still need to ensure the path is a directory

  • Loading branch information...
commit a2a861fcecf40134a4be7735d96896c0d884f670 1 parent 33da24a
@tenderlove tenderlove authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  railties/lib/rails/paths.rb
View
2  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
}
Please sign in to comment.
Something went wrong with that request. Please try again.