aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/application_controller.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2012-12-13 19:11:48 +0000
committerLouise Crow <louise.crow@gmail.com>2012-12-13 20:12:12 +0000
commit611411fc7907a97e3aa8c2339bc9f5b70a5d1a01 (patch)
tree8cf7b4f5fd47010b46af222e055636c8ec99b63b /app/controllers/application_controller.rb
parent482d0d351b48877ac1bf1e13678c5591997755b4 (diff)
Use helper method for download path, and use Rails.root instead of file location.
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 3f3c169ae..239d49a6c 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -229,6 +229,10 @@ class ApplicationController < ActionController::Base
end
end
+ def download_zip_dir()
+ File.join(Rails.root, '/cache/zips/')
+ end
+
# get the local locale
def locale_from_params(*args)
if params[:show_locale]