aboutsummaryrefslogtreecommitdiffstats
path: root/app/models
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/models
parent91925edb6a52b8f7e5320ed1c081aff90046dc5c (diff)
use Rails.root, not RAILS_ROOT
Diffstat (limited to 'app/models')
-rw-r--r--app/models/raw_email.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/raw_email.rb b/app/models/raw_email.rb
index 3e12a6feb..1feb9c70b 100644
--- a/app/models/raw_email.rb
+++ b/app/models/raw_email.rb
@@ -27,7 +27,7 @@ class RawEmail < ActiveRecord::Base
def directory
request_id = self.incoming_message.info_request.id.to_s
if ENV["RAILS_ENV"] == "test"
- return File.join(RAILS_ROOT, 'files/raw_email_test')
+ return File.join(Rails.root, 'files/raw_email_test')
else
return File.join(MySociety::Config.get('RAW_EMAILS_LOCATION',
'files/raw_emails'),