summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-03-15 18:58:55 -0600
committerLuke "Jared" Bennett <lbennett@gitlab.com>2017-04-05 17:44:14 +0100
commit80b2e18fb62b8da7410f90b3e5340b9e63e765a3 (patch)
tree2fd5f480297d99ed2f93b83dfaa51a2cf48573fb
parentf6f6aaf593dc40c79b8e3536f5e2821c96b9dcd3 (diff)
downloadgitlab-ce-80b2e18fb62b8da7410f90b3e5340b9e63e765a3.tar.gz
Enable discussions on issues, commits and snippets
-rw-r--r--app/models/discussion_note.rb2
1 files changed, 1 insertions, 1 deletions
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 }