diff options
author | francis <francis> | 2008-02-21 20:10:21 +0000 |
---|---|---|
committer | francis <francis> | 2008-02-21 20:10:21 +0000 |
commit | 40d906d08d007c9cb81cbe3c4e2ee23b0894d2be (patch) | |
tree | afb367c1fe09024fcf12b3050ceda51d8d5cf4f8 /app/models/info_request.rb | |
parent | 2b82914ae6dd30d9f3726e26f59dd3172b837523 (diff) |
Add new state to indicate that a response is not in a known category.
Diffstat (limited to 'app/models/info_request.rb')
-rw-r--r-- | app/models/info_request.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/app/models/info_request.rb b/app/models/info_request.rb index 5a352026e..43b37a454 100644 --- a/app/models/info_request.rb +++ b/app/models/info_request.rb @@ -19,7 +19,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: info_request.rb,v 1.41 2008-02-15 11:18:55 francis Exp $ +# $Id: info_request.rb,v 1.42 2008-02-21 20:10:21 francis Exp $ require 'digest/sha1' @@ -44,7 +44,8 @@ class InfoRequest < ActiveRecord::Base 'waiting_clarification', 'rejected', 'successful', - 'partially_successful' + 'partially_successful', + 'requires_admin' ] validates_inclusion_of :prominence, :in => [ @@ -135,6 +136,10 @@ public last_event.save! self.save! end + + if new_state == 'requires_admin' + RequestMailer.deliver_requires_admin(self) + end end # Work out what the situation of the request is |