aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/application_controller.rb
diff options
context:
space:
mode:
authorJames McKinney <james@slashpoundbang.com>2012-04-02 18:00:22 +0100
committerJames McKinney <james@slashpoundbang.com>2012-04-02 18:00:22 +0100
commit74d74416d145a49c04f62ec9659f1a564251c1b6 (patch)
treee7d60c26852096b5edec1195ff23640b54bb7fcd /app/controllers/application_controller.rb
parent91925edb6a52b8f7e5320ed1c081aff90046dc5c (diff)
use Rails.root, not RAILS_ROOT
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r--app/controllers/application_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 0508abe76..0ec8e206e 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -178,7 +178,7 @@ class ApplicationController < ActionController::Base
end
def foi_fragment_cache_path(param)
- path = File.join(RAILS_ROOT, 'cache', 'views', foi_fragment_cache_part_path(param))
+ path = File.join(Rails.root, 'cache', 'views', foi_fragment_cache_part_path(param))
max_file_length = 255 - 35 # we subtract 35 because tempfile
# adds on a variable number of
# characters