aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/raw_email.rb
diff options
context:
space:
mode:
authorRobin Houston <robin.houston@gmail.com>2012-04-27 10:18:48 +0100
committerRobin Houston <robin.houston@gmail.com>2012-04-27 10:18:48 +0100
commita7d0d25b323d9ca7f31405482f9462570e0cbeaf (patch)
tree644b8f34e0ca59ae0262c1a936ab65b737b0fcc4 /app/models/raw_email.rb
parent3a18daf0b880ad9f7ee3591c3c777edfd5688b34 (diff)
parent6df23e10dfbf3351d3953f99062d46253b5ec94a (diff)
Merge branch 'develop' of github.com:sebbacon/alaveteli into develop
Diffstat (limited to 'app/models/raw_email.rb')
-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'),