diff options
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/incoming_message.rb | 2 | ||||
-rw-r--r-- | app/models/outgoing_message.rb | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/app/models/incoming_message.rb b/app/models/incoming_message.rb index 96ecc7d53..85140398c 100644 --- a/app/models/incoming_message.rb +++ b/app/models/incoming_message.rb @@ -50,7 +50,7 @@ class IncomingMessage < ActiveRecord::Base belongs_to :raw_email - has_prominence(prominence_states = ['normal', 'hidden','requester_only']) + has_prominence # See binary_mask_stuff function below. It just test for inclusion # in this hash, not the value of the right hand side. diff --git a/app/models/outgoing_message.rb b/app/models/outgoing_message.rb index 07bb2a8e4..e89c11141 100644 --- a/app/models/outgoing_message.rb +++ b/app/models/outgoing_message.rb @@ -22,6 +22,7 @@ # Email: hello@mysociety.org; WWW: http://www.mysociety.org/ class OutgoingMessage < ActiveRecord::Base + extend MessageProminence include Rails.application.routes.url_helpers include LinkToHelper self.default_url_options[:host] = AlaveteliConfiguration::domain @@ -32,6 +33,8 @@ class OutgoingMessage < ActiveRecord::Base strip_attributes! + has_prominence + belongs_to :info_request validates_presence_of :info_request |