aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/link_to_helper.rb
diff options
context:
space:
mode:
authorfrancis <francis>2008-05-15 22:47:16 +0000
committerfrancis <francis>2008-05-15 22:47:16 +0000
commitcac4f2bb8a71c19ab74820c051bb1b2c6ce5a08e (patch)
treefe6f7dd4679078e02dce50de066302286c38b6c1 /app/helpers/link_to_helper.rb
parenteb04710bf6c54a7ae78978cceef278a48ceea268 (diff)
Track things for arbitary search queries.
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 c5556bfa2..cb4b7e5b6 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.30 2008-05-12 10:57:44 francis Exp $
+# $Id: link_to_helper.rb,v 1.31 2008-05-15 22:47:16 francis Exp $
module LinkToHelper
@@ -93,6 +93,8 @@ module LinkToHelper
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)
+ elsif track_thing.track_type == 'search_query'
+ track_search_url(track_thing.track_query)
else
raise "unknown tracking type " + track_thing.track_type
end