aboutsummaryrefslogtreecommitdiffstats
path: root/app/models
diff options
context:
space:
mode:
Diffstat (limited to 'app/models')
-rw-r--r--app/models/contact_mailer.rb1
-rw-r--r--app/models/foi_attachment.rb2
-rw-r--r--app/models/info_request_event.rb1
3 files changed, 3 insertions, 1 deletions
diff --git a/app/models/contact_mailer.rb b/app/models/contact_mailer.rb
index 800fe54e4..6e781d48c 100644
--- a/app/models/contact_mailer.rb
+++ b/app/models/contact_mailer.rb
@@ -52,6 +52,7 @@ class ContactMailer < ApplicationMailer
:from_user => @from,
:recipient_user => recipient_user,
}
+ bcc MySociety::Config::get("CONTACT_EMAIL")
end
end
diff --git a/app/models/foi_attachment.rb b/app/models/foi_attachment.rb
index f3e3d7e00..9bbf0988f 100644
--- a/app/models/foi_attachment.rb
+++ b/app/models/foi_attachment.rb
@@ -42,7 +42,7 @@ class FoiAttachment < ActiveRecord::Base
if rails_env.nil? || rails_env.empty?
raise "$RAILS_ENV is not set"
end
- base_dir = File.join(File.dirname(__FILE__), "../../cache", "attachments_#{rails_env}")
+ base_dir = File.expand_path(File.join(File.dirname(__FILE__), "../../cache", "attachments_#{rails_env}"))
return File.join(base_dir, self.hexdigest[0..2])
end
diff --git a/app/models/info_request_event.rb b/app/models/info_request_event.rb
index a410328b0..9a4f6d9fe 100644
--- a/app/models/info_request_event.rb
+++ b/app/models/info_request_event.rb
@@ -51,6 +51,7 @@ class InfoRequestEvent < ActiveRecord::Base
'destroy_outgoing', # deleted an outgoing message (in admin interface)
'redeliver_incoming', # redelivered an incoming message elsewhere (in admin interface)
'move_request', # changed user or public body (in admin interface)
+ 'hide', # hid a request (in admin interface)
'manual', # you did something in the db by hand
'response',