aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/info_request.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2014-09-01 10:30:21 +0100
committerLouise Crow <louise.crow@gmail.com>2014-09-01 11:19:47 +0100
commit82565870dfa3b7da0a729723345097e230c4a163 (patch)
tree743063b57e3b2af4c424f69da89fc9f33b072090 /app/models/info_request.rb
parenteadc080e9c86c83dbcd517fb3089a62e993cf1c4 (diff)
Use request dirs method.
Diffstat (limited to 'app/models/info_request.rb')
-rw-r--r--app/models/info_request.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/info_request.rb b/app/models/info_request.rb
index a99cadc77..1d82a5714 100644
--- a/app/models/info_request.rb
+++ b/app/models/info_request.rb
@@ -1050,8 +1050,7 @@ public
def foi_fragment_cache_directory
# return stub path so admin can expire it
- first_three_digits = id.to_s()[0..2]
- path = "views/request/#{first_three_digits}/#{id}"
+ path = "views/request/#{request_dirs}"
foi_cache_path = File.expand_path(File.join(Rails.root, 'cache'))
return File.join(foi_cache_path, path)
end