diff options
author | Louise Crow <louise.crow@gmail.com> | 2014-09-01 10:29:12 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2014-09-01 11:19:40 +0100 |
commit | eadc080e9c86c83dbcd517fb3089a62e993cf1c4 (patch) | |
tree | bf35e9869bd53eefbb3465b353b8aad528be94e2 /app/models/info_request.rb | |
parent | eff96ec99fef82c17c79c9a752174596daef4455 (diff) |
Use path relative to Rails root.
Diffstat (limited to 'app/models/info_request.rb')
-rw-r--r-- | app/models/info_request.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/info_request.rb b/app/models/info_request.rb index 121724424..a99cadc77 100644 --- a/app/models/info_request.rb +++ b/app/models/info_request.rb @@ -1052,7 +1052,7 @@ public # return stub path so admin can expire it first_three_digits = id.to_s()[0..2] path = "views/request/#{first_three_digits}/#{id}" - foi_cache_path = File.expand_path(File.join(File.dirname(__FILE__), '../../cache')) + foi_cache_path = File.expand_path(File.join(Rails.root, 'cache')) return File.join(foi_cache_path, path) end |