Permalink
Browse files

use File.directory? as Dir.exists? is only 1.9.2+

  • Loading branch information...
1 parent 6dda216 commit 3a4dc9d34c1cde8bf34dfa4b4600fb8bcef9eb45 @tenderlove tenderlove committed Aug 2, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/lib/rails/paths.rb
@@ -171,9 +171,9 @@ def expanded
def existent
expanded.select { |f| File.exists?(f) }
end
-
+
def existent_directories
- expanded.select {|d| Dir.exists?(d) }
+ expanded.select { |d| File.directory?(d) }
end
alias to_a expanded

0 comments on commit 3a4dc9d

Please sign in to comment.