aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/track_thing.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/track_thing.rb')
-rw-r--r--app/models/track_thing.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/models/track_thing.rb b/app/models/track_thing.rb
index 778252c53..2ee494b9d 100644
--- a/app/models/track_thing.rb
+++ b/app/models/track_thing.rb
@@ -21,7 +21,7 @@
# Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: track_thing.rb,v 1.7 2008-04-04 02:29:09 francis Exp $
+# $Id: track_thing.rb,v 1.8 2008-04-09 01:32:53 francis Exp $
class TrackThing < ActiveRecord::Base
belongs_to :tracking_user, :class_name => 'User'
@@ -40,6 +40,7 @@ class TrackThing < ActiveRecord::Base
validates_inclusion_of :track_medium, :in => [
'email_daily',
+ 'feed'
]
def TrackThing.create_track_for_request(info_request)
@@ -57,10 +58,11 @@ class TrackThing < ActiveRecord::Base
if self.track_type == 'request_updates'
@params = {
# Website
- :title => "Track the request '" + CGI.escapeHTML(self.info_request.title) + "'",
+ :set_title => "How would you like to track the request '" + CGI.escapeHTML(self.info_request.title) + "'?",
:list_description => "'<a href=\"/request/" + CGI.escapeHTML(self.info_request.url_title) + "\">" + CGI.escapeHTML(self.info_request.title) + "</a>', a request", # XXX yeuch, sometimes I just want to call view helpers from the model, sorry! can't work out how
# Email
:title_in_email => "New updates for the request '" + self.info_request.title + "'",
+ :title_in_rss => "New updates for the request '" + CGI.escapeHTML(self.info_request.title) + "'",
# Authentication
:web => "To follow updates to the request '" + CGI.escapeHTML(self.info_request.title) + "'",
:email => "Then you will be emailed whenever the request '" + CGI.escapeHTML(self.info_request.title) + "' is updated.",