Permalink
Browse files

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

  • Loading branch information...
1 parent f9a69e8 commit 8293b10425bfe621b4bed85bf3db57cccd70e43b @tenderlove tenderlove committed with fxn 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 8293b10

Please sign in to comment.