aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/info_request.rb
diff options
context:
space:
mode:
authorfrancis <francis>2009-08-19 00:22:49 +0000
committerfrancis <francis>2009-08-19 00:22:49 +0000
commit9242f214beca2f4f3adaec869d2ecf2471747a60 (patch)
treee8b0539e63d6b1d1f9d56b4f775dea1c111986c4 /app/models/info_request.rb
parent91b817de64dc16d7b06c79a96e0deeb21c71e045 (diff)
Fix subtle bug, which caused error with old data and new not-sending-to-auto-annotations code
Diffstat (limited to 'app/models/info_request.rb')
-rw-r--r--app/models/info_request.rb12
1 files changed, 1 insertions, 11 deletions
diff --git a/app/models/info_request.rb b/app/models/info_request.rb
index 13d5c8a2e..da5403122 100644
--- a/app/models/info_request.rb
+++ b/app/models/info_request.rb
@@ -24,7 +24,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.199 2009-08-18 20:51:26 francis Exp $
+# $Id: info_request.rb,v 1.200 2009-08-19 00:22:49 francis Exp $
require 'digest/sha1'
require File.join(File.dirname(__FILE__),'../../vendor/plugins/acts_as_xapian/lib/acts_as_xapian')
@@ -555,16 +555,6 @@ public
info_request_event.save!
end
- # The last comment made, for alerts
- def get_last_comment_event
- for e in self.info_request_events.reverse
- if e.event_type == 'comment'
- return e
- end
- end
- return nil
- end
-
# The last response is the default one people might want to reply to
def get_last_response_event_id
for e in self.info_request_events.reverse