aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/comment_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/comment_controller.rb')
-rw-r--r--app/controllers/comment_controller.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/comment_controller.rb b/app/controllers/comment_controller.rb
index 94abfe142..8ac6d3850 100644
--- a/app/controllers/comment_controller.rb
+++ b/app/controllers/comment_controller.rb
@@ -4,13 +4,14 @@
# Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: comment_controller.rb,v 1.4 2008-08-29 11:57:57 francis Exp $
+# $Id: comment_controller.rb,v 1.5 2008-08-29 12:03:40 francis Exp $
class CommentController < ApplicationController
def new
if params[:type] == 'request'
@info_request = InfoRequest.find_by_url_title(params[:url_title])
+ @track_thing = TrackThing.create_track_for_request(@info_request)
@comment = Comment.new(params[:comment].merge({
:comment_type => 'request',
:user => @user