diff options
author | francis <francis> | 2008-01-02 18:14:40 +0000 |
---|---|---|
committer | francis <francis> | 2008-01-02 18:14:40 +0000 |
commit | 1b47360b13744a61e46c426934573caf46f0eb86 (patch) | |
tree | b08a292a0271e2ec245958049f06427c98c6eb75 /app/models/info_request.rb | |
parent | 380bed84e35d428451b286657f42fd86d8ad8d2b (diff) |
More search like display of listings of requests.
Diffstat (limited to 'app/models/info_request.rb')
-rw-r--r-- | app/models/info_request.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/app/models/info_request.rb b/app/models/info_request.rb index 31086c0f8..8eab0cb23 100644 --- a/app/models/info_request.rb +++ b/app/models/info_request.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.rb,v 1.19 2008-01-02 16:04:53 francis Exp $ +# $Id: info_request.rb,v 1.20 2008-01-02 18:14:40 francis Exp $ require 'digest/sha1' @@ -141,6 +141,13 @@ class InfoRequest < ActiveRecord::Base info_request_event.info_request = self info_request_event.save! end + + # Text from the the initial request, for use in summary display + def initial_request_text + excerpt = outgoing_messages[0].body + excerpt.sub!(/Dear .+,/, "") + return excerpt + end end |