aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/info_request.rb
diff options
context:
space:
mode:
authorfrancis <francis>2008-10-14 12:48:48 +0000
committerfrancis <francis>2008-10-14 12:48:48 +0000
commit71d32463235b441f81614bc59b7c67b0931e7d57 (patch)
tree1bd81835169f171a258a232e37e0e3a07e2a3dc4 /app/models/info_request.rb
parent2aa1a2e153f3e9a315e7025321ef1c692a04d328 (diff)
Remove details field now not used.
Diffstat (limited to 'app/models/info_request.rb')
-rw-r--r--app/models/info_request.rb9
1 files changed, 3 insertions, 6 deletions
diff --git a/app/models/info_request.rb b/app/models/info_request.rb
index b1d411113..0c99dadbf 100644
--- a/app/models/info_request.rb
+++ b/app/models/info_request.rb
@@ -23,7 +23,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.145 2008-10-03 17:09:06 francis Exp $
+# $Id: info_request.rb,v 1.146 2008-10-14 12:48:49 francis Exp $
require 'digest/sha1'
require File.join(File.dirname(__FILE__),'../../vendor/plugins/acts_as_xapian/lib/acts_as_xapian')
@@ -316,7 +316,7 @@ public
end
# change status, including for last event for later historical purposes
- def set_described_state(new_state, details = nil)
+ def set_described_state(new_state)
ActiveRecord::Base.transaction do
self.awaiting_description = false
last_event = self.get_last_event
@@ -329,10 +329,7 @@ public
self.calculate_event_states
if new_state == 'requires_admin'
- RequestMailer.deliver_requires_admin(self, details)
- else
- # XXX this chucks details if we are not moving to requires_admin -
- # the user is not meant to have entered any.
+ RequestMailer.deliver_requires_admin(self)
end
end