diff options
Diffstat (limited to 'app/models/info_request_event.rb')
-rw-r--r-- | app/models/info_request_event.rb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/app/models/info_request_event.rb b/app/models/info_request_event.rb index 528d728a7..fe26212fd 100644 --- a/app/models/info_request_event.rb +++ b/app/models/info_request_event.rb @@ -16,7 +16,7 @@ # 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.11 2008-02-07 15:11:16 francis Exp $ +# $Id: info_request_event.rb,v 1.12 2008-02-14 11:19:42 francis Exp $ class InfoRequestEvent < ActiveRecord::Base belongs_to :info_request @@ -32,6 +32,15 @@ class InfoRequestEvent < ActiveRecord::Base 'response' ] + # user described state (also update in info_request) + validates_inclusion_of :described_state, :in => [ + 'waiting_response', + 'waiting_clarification', + 'rejected', + 'successful', + 'partially_successful' + ] + # We store YAML version of parameters in the database def params=(params) self.params_yaml = params.to_yaml |