diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-11-16 12:23:50 +0100 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-11-16 15:12:23 +0100 |
commit | f691010d5c66b543c05ed4d53d663986b05dc90f (patch) | |
tree | 7ae8c49381f97f7be9ccce60d24a6bf695b9b63f /app/controllers/snippets | |
parent | a4072db0198896242886d22c644ed91c1016aa8d (diff) | |
download | gitlab-ce-f691010d5c66b543c05ed4d53d663986b05dc90f.tar.gz |
Make sure NotesActions#noteable returns a Noteable in the update actiondm-notes-actions-noteable-for-update
Diffstat (limited to 'app/controllers/snippets')
-rw-r--r-- | app/controllers/snippets/notes_controller.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/snippets/notes_controller.rb b/app/controllers/snippets/notes_controller.rb index f9496787b15..c8b4682e6dc 100644 --- a/app/controllers/snippets/notes_controller.rb +++ b/app/controllers/snippets/notes_controller.rb @@ -20,6 +20,7 @@ class Snippets::NotesController < ApplicationController def snippet PersonalSnippet.find_by(id: params[:snippet_id]) end + alias_method :noteable, :snippet def note_params super.merge(noteable_id: params[:snippet_id]) |