aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-08-01 17:29:03 -0700
committerXavier Noria <fxn@hashref.com>2011-08-13 16:22:27 -0700
commit8293b10425bfe621b4bed85bf3db57cccd70e43b (patch)
treedf08942a9493e48f6cb6a83c1e3c67e3a93854e1 /railties
parentf9a69e8744546602b567dc5787f7d8ee23073bec (diff)
downloadrails-8293b10425bfe621b4bed85bf3db57cccd70e43b.tar.gz
rails-8293b10425bfe621b4bed85bf3db57cccd70e43b.tar.bz2
rails-8293b10425bfe621b4bed85bf3db57cccd70e43b.zip
use File.directory? as Dir.exists? is only 1.9.2+
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/paths.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/paths.rb b/railties/lib/rails/paths.rb
index 55b820b12e..b37421c09c 100644
--- a/railties/lib/rails/paths.rb
+++ b/railties/lib/rails/paths.rb
@@ -171,9 +171,9 @@ module Rails
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