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:
parent
f9a69e8744
commit
8293b10425
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue