aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/link_to_helper.rb
diff options
context:
space:
mode:
authorfrancis <francis>2008-05-12 10:57:43 +0000
committerfrancis <francis>2008-05-12 10:57:43 +0000
commit23147aefa11d95482af5dfa24458d8b1267026b0 (patch)
tree3fd32424039c174f1b2ccccc451d89183f41768b /app/helpers/link_to_helper.rb
parentf4a292e1b94bad33af6140330151d6e13886ae58 (diff)
Track requests by a particular user.
Diffstat (limited to 'app/helpers/link_to_helper.rb')
-rw-r--r--app/helpers/link_to_helper.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/helpers/link_to_helper.rb b/app/helpers/link_to_helper.rb
index 8a36121e8..c5556bfa2 100644
--- a/app/helpers/link_to_helper.rb
+++ b/app/helpers/link_to_helper.rb
@@ -5,7 +5,7 @@
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: link_to_helper.rb,v 1.29 2008-05-12 10:21:35 francis Exp $
+# $Id: link_to_helper.rb,v 1.30 2008-05-12 10:57:44 francis Exp $
module LinkToHelper
@@ -91,6 +91,8 @@ module LinkToHelper
track_list_url(:view => 'successful')
elsif track_thing.track_type == 'public_body_updates'
track_public_body_url(:url_name => track_thing.public_body.url_name)
+ elsif track_thing.track_type == 'user_updates'
+ track_user_url(:url_name => track_thing.tracked_user.url_name)
else
raise "unknown tracking type " + track_thing.track_type
end