From f554aa38d504387aae09d4000bd208078e1c3c1b Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Wed, 25 Dec 2013 22:32:48 +0200 Subject: Update commentable controllers with new note vars Signed-off-by: Dmitriy Zaporozhets --- app/controllers/projects/commit_controller.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'app/controllers/projects/commit_controller.rb') diff --git a/app/controllers/projects/commit_controller.rb b/app/controllers/projects/commit_controller.rb index 34cd1341f78..65b8a7283a7 100644 --- a/app/controllers/projects/commit_controller.rb +++ b/app/controllers/projects/commit_controller.rb @@ -24,9 +24,8 @@ class Projects::CommitController < Projects::ApplicationController @line_notes = result[:line_notes] @branches = result[:branches] @notes_count = result[:notes_count] - @target_type = "Commit" @notes = project.notes.for_commit_id(@commit.id).not_inline.fresh - @target_id = @commit.id + @noteable = @commit @comments_allowed = @reply_allowed = true @comments_target = { noteable_type: 'Commit', -- cgit v1.2.1