Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/snippets/notes_controller.rb')
-rw-r--r--app/controllers/snippets/notes_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/snippets/notes_controller.rb b/app/controllers/snippets/notes_controller.rb
index 9e23eef4178..81f80aa4224 100644
--- a/app/controllers/snippets/notes_controller.rb
+++ b/app/controllers/snippets/notes_controller.rb
@@ -13,7 +13,7 @@ class Snippets::NotesController < ApplicationController
private
def note
- @note ||= snippet.notes.inc_relations_for_view.find(params[:id])
+ @note ||= snippet.notes.inc_relations_for_view(snippet).find(params[:id])
end
alias_method :awardable, :note