1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

This commit is contained in:
Aaron Patterson 2011-08-01 17:29:03 -07:00 committed by Xavier Noria
parent f9a69e8744
commit 8293b10425

View file

@ -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