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:
authorDouwe Maan <douwe@selenight.nl>2017-03-16 03:58:55 +0300
committerDouwe Maan <douwe@selenight.nl>2017-03-21 07:51:46 +0300
commit44b3273d8e1c6ba3c6ab5c72911cbd59d2e9c317 (patch)
tree9a2d3c9517c7377285c763450a6d987f98e57ea2
parentcd0099d8c5855e7f8582e6a3ed0fa601e8be7815 (diff)
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 }