aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/info_request.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/info_request.rb')
-rw-r--r--app/models/info_request.rb9
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