diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-12-25 22:32:48 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-12-25 22:32:48 +0200 |
commit | f554aa38d504387aae09d4000bd208078e1c3c1b (patch) | |
tree | 6ec8d7413037ce2adcbb786285f65f4264fcc7df /app/controllers/projects/commit_controller.rb | |
parent | 48c682b52f61d96ef14ca9168b5f2678385dd626 (diff) | |
download | gitlab-ce-f554aa38d504387aae09d4000bd208078e1c3c1b.tar.gz |
Update commentable controllers with new note vars
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/controllers/projects/commit_controller.rb')
-rw-r--r-- | app/controllers/projects/commit_controller.rb | 3 |
1 files changed, 1 insertions, 2 deletions
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', |