diff options
-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 |