aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/application_controller.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2012-12-13 20:23:23 +0000
committerLouise Crow <louise.crow@gmail.com>2012-12-13 20:23:23 +0000
commita5744b206cf1ca811f913d68cafc0178079be2f7 (patch)
tree155e8ba6e45ccfda8f52fcc216bef44e4e3f4418 /app/controllers/application_controller.rb
parentd2dc193066222b279faa52a66a22760e739dd87e (diff)
Remove any download zip files when a request's cached files are expired.
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r--app/controllers/application_controller.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index d8f7f9ea7..b707ae878 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -234,6 +234,10 @@ class ApplicationController < ActionController::Base
File.join(first_three_digits.to_s, info_request.id.to_s)
end
+ def request_download_zip_dir(info_request)
+ File.join(download_zip_dir, "download", request_dirs(info_request))
+ end
+
def download_zip_dir()
File.join(Rails.root, '/cache/zips/')
end