mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
use File.directory? as Dir.exists? is only 1.9.2+
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user