diff options
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| |