summaryrefslogtreecommitdiffstats
path: root/app/controllers/comments_controller.rb
diff options
context:
space:
mode:
authorJohan Sørensen <johan@johansorensen.com>2008-04-21 00:11:04 +0200
committerJohan Sørensen <johan@johansorensen.com>2008-04-21 00:11:04 +0200
commitd46486643c475436b7938b955e7d1582ef1a90c2 (patch)
tree22035666d67bddacd486bae5bd7eb521fd1103b7 /app/controllers/comments_controller.rb
parenta6ecefdc8ea78756d1ec63f8de846b3202545df4 (diff)
downloadgitorious-mainline-outdated-d46486643c475436b7938b955e7d1582ef1a90c2.zip
gitorious-mainline-outdated-d46486643c475436b7938b955e7d1582ef1a90c2.tar.gz
gitorious-mainline-outdated-d46486643c475436b7938b955e7d1582ef1a90c2.tar.bz2
Moved events to be primarily pivoting around the project.
Diffstat (limited to 'app/controllers/comments_controller.rb')
-rw-r--r--app/controllers/comments_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/comments_controller.rb b/app/controllers/comments_controller.rb
index 37d293f..1a31794 100644
--- a/app/controllers/comments_controller.rb
+++ b/app/controllers/comments_controller.rb
@@ -29,7 +29,7 @@ class CommentsController < ApplicationController
@comment.project = @project
respond_to do |format|
if @comment.save
- current_user.create_event(Action::COMMENT, @comment)
+ @project.create_event(Action::COMMENT, @comment, current_user)
format.html do
flash[:success] = "Your comment was added"
redirect_to project_repository_comments_path(@project, @repository)