aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-10-02 02:30:44 -0700
committerJosé Valim <jose.valim@gmail.com>2011-10-02 02:30:44 -0700
commit1efe41dc366d21123842dea34ba95ddf1ab284d4 (patch)
tree39998149570c99ca072f6a0f5bbcdd1108b7cf95 /activesupport/lib
parent6e8fe1bf021139a2fbd06a10778ad2c6b67930ef (diff)
parent119a484e808898a7ff55a27326ad49d8d493eb59 (diff)
downloadrails-1efe41dc366d21123842dea34ba95ddf1ab284d4.tar.gz
rails-1efe41dc366d21123842dea34ba95ddf1ab284d4.tar.bz2
rails-1efe41dc366d21123842dea34ba95ddf1ab284d4.zip
Merge pull request #3174 from phuibonhoa/master
Fixed file store to handle delete_matched being called before cache dir is created.
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/cache/file_store.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/cache/file_store.rb b/activesupport/lib/active_support/cache/file_store.rb
index 3f516d4808..b431041b76 100644
--- a/activesupport/lib/active_support/cache/file_store.rb
+++ b/activesupport/lib/active_support/cache/file_store.rb
@@ -161,6 +161,7 @@ module ActiveSupport
end
def search_dir(dir, &callback)
+ return if !File.exist?(dir)
Dir.foreach(dir) do |d|
next if d == "." || d == ".."
name = File.join(dir, d)