diff options
author | Robin Houston <robin@lenny.robin> | 2011-08-01 20:41:02 +0100 |
---|---|---|
committer | Robin Houston <robin@lenny.robin> | 2011-08-01 20:41:02 +0100 |
commit | b6860bea9d4569a52801d72734fa86849c232721 (patch) | |
tree | a0df70cbcb4ae2ed0b5aaf25a3e804c4ba4f0b84 | |
parent | 272623f901f8f74523de1bcd7912c17b48cd0780 (diff) |
Fix broken check for test environment
The condition that was supposed to check for the "test" environment was
accidentally imposing the test environment.
Closes #102.
-rw-r--r-- | app/models/raw_email.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/raw_email.rb b/app/models/raw_email.rb index 1d85cc7d9..eb36053c1 100644 --- a/app/models/raw_email.rb +++ b/app/models/raw_email.rb @@ -29,7 +29,7 @@ class RawEmail < ActiveRecord::Base def directory request_id = self.incoming_message.info_request.id.to_s - if ENV["RAILS_ENV"] = "test" + if ENV["RAILS_ENV"] == "test" return 'files/raw_email_test' else return File.join(MySociety::Config.get('RAW_EMAILS_LOCATION', |