summaryrefslogtreecommitdiff
path: root/app/controllers/projects/commit_controller.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2016-05-13 14:53:04 -0500
committerDouwe Maan <douwe@selenight.nl>2016-05-13 17:31:58 -0500
commit9a3ed265e9c82ee55bc6a17737ef6c5c2a1ad7e3 (patch)
tree61acec62171d5eb2b4d2df22ee93e1aee72d4040 /app/controllers/projects/commit_controller.rb
parent99d3e21f19ffb5cccb58fdfeac4fb6174e7e65e2 (diff)
downloadgitlab-ce-9a3ed265e9c82ee55bc6a17737ef6c5c2a1ad7e3.tar.gz
Use `@diff_notes_disabled` instead of `@comments_allowed`
Diffstat (limited to 'app/controllers/projects/commit_controller.rb')
-rw-r--r--app/controllers/projects/commit_controller.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/app/controllers/projects/commit_controller.rb b/app/controllers/projects/commit_controller.rb
index 9bcb82ef3f9..6e02f1240fe 100644
--- a/app/controllers/projects/commit_controller.rb
+++ b/app/controllers/projects/commit_controller.rb
@@ -22,7 +22,6 @@ class Projects::CommitController < Projects::ApplicationController
@note = @project.build_commit_note(commit)
@notes = commit.notes.non_diff_notes.fresh
@noteable = @commit
- @comments_allowed = true
@comments_target = {
noteable_type: 'Commit',
commit_id: @commit.id