summaryrefslogtreecommitdiff
path: root/app/controllers/snippets/notes_controller.rb
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, 2 insertions, 0 deletions
diff --git a/app/controllers/snippets/notes_controller.rb b/app/controllers/snippets/notes_controller.rb
index 217da89a1fd..e992afc0026 100644
--- a/app/controllers/snippets/notes_controller.rb
+++ b/app/controllers/snippets/notes_controller.rb
@@ -17,9 +17,11 @@ class Snippets::NotesController < ApplicationController
nil
end
+ # rubocop: disable CodeReuse/ActiveRecord
def snippet
PersonalSnippet.find_by(id: params[:snippet_id])
end
+ # rubocop: enable CodeReuse/ActiveRecord
alias_method :noteable, :snippet
def note_params