aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/incoming_message.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/incoming_message.rb')
-rw-r--r--app/models/incoming_message.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/app/models/incoming_message.rb b/app/models/incoming_message.rb
index 37acc6a99..287120599 100644
--- a/app/models/incoming_message.rb
+++ b/app/models/incoming_message.rb
@@ -49,11 +49,8 @@ class IncomingMessage < ActiveRecord::Base
belongs_to :raw_email
- validates_inclusion_of :prominence, :in => [
- 'normal',
- 'hidden',
- 'requester_only'
- ]
+ PROMINENCE_STATES = ['normal', 'hidden','requester_only']
+ validates_inclusion_of :prominence, :in => PROMINENCE_STATES
# See binary_mask_stuff function below. It just test for inclusion
# in this hash, not the value of the right hand side.