summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2016-07-01 17:15:48 +0200
committerRémy Coutable <remy@rymai.me>2016-07-01 18:39:19 +0200
commitd71983f599afd3b81bdda42eec3e989ef7ea02d3 (patch)
treeb67faaa5709c4d93a297b918056e80ed141937d7
parent6c0d3b4cf3847b78b89170ccb0d8a1e5ebdc48d6 (diff)
downloadgitlab-ce-19388-fix-snippets-notes-not-shown.tar.gz
Fix snippets comments not displayed19388-fix-snippets-notes-not-shown
The issue was that @notes were not passed to Banzai::NoteRenderer.render in Projects::SnippetsController#show. This was forgotten in d470f3d1. Signed-off-by: Rémy Coutable <remy@rymai.me>
-rw-r--r--app/controllers/projects/snippets_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/snippets_controller.rb b/app/controllers/projects/snippets_controller.rb
index 6d2901a24a4..6d0a7ee1031 100644
--- a/app/controllers/projects/snippets_controller.rb
+++ b/app/controllers/projects/snippets_controller.rb
@@ -54,7 +54,7 @@ class Projects::SnippetsController < Projects::ApplicationController
def show
@note = @project.notes.new(noteable: @snippet)
- @notes = @snippet.notes.fresh
+ @notes = Banzai::NoteRenderer.render(@snippet.notes.fresh, @project, current_user)
@noteable = @snippet
end