aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
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