diff options
author | Rémy Coutable <remy@rymai.me> | 2016-07-01 17:15:48 +0200 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-07-01 18:39:19 +0200 |
commit | d71983f599afd3b81bdda42eec3e989ef7ea02d3 (patch) | |
tree | b67faaa5709c4d93a297b918056e80ed141937d7 | |
parent | 6c0d3b4cf3847b78b89170ccb0d8a1e5ebdc48d6 (diff) | |
download | gitlab-ce-d71983f599afd3b81bdda42eec3e989ef7ea02d3.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.rb | 2 |
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 |