Skip to content

Commit

Permalink
still need to ensure the path is a directory
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Mar 26, 2012
1 parent 33da24a commit a2a861f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/lib/rails/paths.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit a2a861f

Please sign in to comment.