diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2011-08-01 12:32:17 -0700 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2011-08-01 16:33:27 -0300 |
commit | 6dda2167154c856e8776a192e90118c3b3129b78 (patch) | |
tree | b43a34c8b0c51068e536be42f5532543dd91c0f9 /railties/lib/rails/paths.rb | |
parent | 6e701e8735df9bf49549e43f001af6a446148b03 (diff) | |
download | rails-6dda2167154c856e8776a192e90118c3b3129b78.tar.gz rails-6dda2167154c856e8776a192e90118c3b3129b78.tar.bz2 rails-6dda2167154c856e8776a192e90118c3b3129b78.zip |
Merge pull request #2324 from zenapsis/3-1-stable
Rails 3.1 throws a Errno::ENOTDIR if files are put in assets directories
Diffstat (limited to 'railties/lib/rails/paths.rb')
-rw-r--r-- | railties/lib/rails/paths.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/railties/lib/rails/paths.rb b/railties/lib/rails/paths.rb index de3d0b6fc5..55b820b12e 100644 --- a/railties/lib/rails/paths.rb +++ b/railties/lib/rails/paths.rb @@ -171,6 +171,10 @@ module Rails def existent expanded.select { |f| File.exists?(f) } end + + def existent_directories + expanded.select {|d| Dir.exists?(d) } + end alias to_a expanded end |