Skip to content
This repository
Browse code

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

  • Loading branch information...
commit 3a4dc9d34c1cde8bf34dfa4b4600fb8bcef9eb45 1 parent 6dda216
Aaron Patterson authored August 01, 2011

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  railties/lib/rails/paths.rb
4  railties/lib/rails/paths.rb
@@ -171,9 +171,9 @@ def expanded
171 171
       def existent
172 172
         expanded.select { |f| File.exists?(f) }
173 173
       end
174  
-      
  174
+
175 175
       def existent_directories
176  
-        expanded.select {|d| Dir.exists?(d) }
  176
+        expanded.select { |d| File.directory?(d) }
177 177
       end
178 178
 
179 179
       alias to_a expanded

0 notes on commit 3a4dc9d

Please sign in to comment.
Something went wrong with that request. Please try again.