aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/models/info_request_event.rb14
-rw-r--r--todo.txt1
2 files changed, 3 insertions, 12 deletions
diff --git a/app/models/info_request_event.rb b/app/models/info_request_event.rb
index d1798511b..40f880b72 100644
--- a/app/models/info_request_event.rb
+++ b/app/models/info_request_event.rb
@@ -17,7 +17,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.30 2008-03-31 23:19:16 francis Exp $
+# $Id: info_request_event.rb,v 1.31 2008-03-31 23:58:54 francis Exp $
class InfoRequestEvent < ActiveRecord::Base
belongs_to :info_request
@@ -63,18 +63,10 @@ class InfoRequestEvent < ActiveRecord::Base
self.calculated_state
end
def requested_by
- if self.event_type == 'sent'
- self.info_request.user.url_name
- else
- nil
- end
+ self.info_request.user.url_name
end
def requested_from
- if self.event_type == 'sent'
- self.info_request.public_body.url_name
- else
- nil
- end
+ self.info_request.public_body.url_name
end
def solr_text_main
text = ''
diff --git a/todo.txt b/todo.txt
index e256a1214..f91c64d95 100644
--- a/todo.txt
+++ b/todo.txt
@@ -1,7 +1,6 @@
Search:
Make /list be search
-Make requested_by field in responses as well
FOI requests to use to test it
==============================