Permalink
Browse files

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

  • Loading branch information...
tenderlove committed Aug 2, 2011
1 parent 1711731 commit ebfad374ff89764a315c2bf476806001ad421091
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/lib/rails/paths.rb
@@ -193,9 +193,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
def paths

0 comments on commit ebfad37

Please sign in to comment.