aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/info_request_event.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/info_request_event.rb')
-rw-r--r--app/models/info_request_event.rb11
1 files changed, 9 insertions, 2 deletions
diff --git a/app/models/info_request_event.rb b/app/models/info_request_event.rb
index 706db9d20..9e4d8f6b9 100644
--- a/app/models/info_request_event.rb
+++ b/app/models/info_request_event.rb
@@ -15,14 +15,21 @@
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: info_request_event.rb,v 1.5 2008-01-10 01:13:28 francis Exp $
+# $Id: info_request_event.rb,v 1.6 2008-01-21 11:08:16 francis Exp $
class InfoRequestEvent < ActiveRecord::Base
belongs_to :info_request
validates_presence_of :info_request
validates_presence_of :event_type
- validates_inclusion_of :event_type, :in => ['sent', 'resent', 'followup_sent', 'followup_resent', 'edit_outgoing']
+ validates_inclusion_of :event_type, :in => [
+ 'sent',
+ 'resent',
+ 'followup_sent',
+ 'followup_resent',
+ 'edit_outgoing', # outgoing message edited in admin interface
+ 'manual' # you did something in the db by hand
+ ]
# We store YAML version of parameters in the database
def params=(params)