diff options
author | Marius Mathiesen <marius@shortcut.no> | 2009-07-02 12:19:10 +0200 |
---|---|---|
committer | Marius Mathiesen <marius@shortcut.no> | 2009-07-02 12:19:10 +0200 |
commit | 4905d51e686c3ff2f7c6463cd72f412e8c7b87fe (patch) | |
tree | 68c3b29c6de661cc937c555774a72878085dd20d /app/controllers/comments_controller.rb | |
parent | 657e0e6e9e96444fda951d87482c57d9f76f4f0c (diff) | |
download | gitorious-mainline-outdated-4905d51e686c3ff2f7c6463cd72f412e8c7b87fe.zip gitorious-mainline-outdated-4905d51e686c3ff2f7c6463cd72f412e8c7b87fe.tar.gz gitorious-mainline-outdated-4905d51e686c3ff2f7c6463cd72f412e8c7b87fe.tar.bz2 |
Let each project define its status tags for merge requests
- when changing the state from a comment, create an event
- display status field in merge request form
Diffstat (limited to 'app/controllers/comments_controller.rb')
-rw-r--r-- | app/controllers/comments_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/comments_controller.rb b/app/controllers/comments_controller.rb index fc7cde1..9a9b2be 100644 --- a/app/controllers/comments_controller.rb +++ b/app/controllers/comments_controller.rb @@ -50,8 +50,8 @@ class CommentsController < ApplicationController def create state = params[:comment].delete(:state) @comment = @target.comments.new(params[:comment]) - @comment.state = state @comment.user = current_user + @comment.state = state @comment.project = @project respond_to do |format| |