diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-08-01 17:29:03 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-08-01 17:29:03 -0700 |
commit | 3a4dc9d34c1cde8bf34dfa4b4600fb8bcef9eb45 (patch) | |
tree | fbc06c8c0f218c22f0fde9686b5500bacc0bc300 /railties | |
parent | 6dda2167154c856e8776a192e90118c3b3129b78 (diff) | |
download | rails-3a4dc9d34c1cde8bf34dfa4b4600fb8bcef9eb45.tar.gz rails-3a4dc9d34c1cde8bf34dfa4b4600fb8bcef9eb45.tar.bz2 rails-3a4dc9d34c1cde8bf34dfa4b4600fb8bcef9eb45.zip |
use File.directory? as Dir.exists? is only 1.9.2+
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/paths.rb | 4 |
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 |