From 80b2e18fb62b8da7410f90b3e5340b9e63e765a3 Mon Sep 17 00:00:00 2001 From: Douwe Maan Date: Wed, 15 Mar 2017 18:58:55 -0600 Subject: [PATCH] Enable discussions on issues, commits and snippets --- app/models/discussion_note.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/discussion_note.rb b/app/models/discussion_note.rb index fc168ae74a9..510aefbf609 100644 --- a/app/models/discussion_note.rb +++ b/app/models/discussion_note.rb @@ -1,5 +1,5 @@ class DiscussionNote < Note - NOTEABLE_TYPES = %w(MergeRequest).freeze + NOTEABLE_TYPES = %w(MergeRequest Issue Commit Snippet).freeze validates :noteable_type, inclusion: { in: NOTEABLE_TYPES }