Enable discussions on issues, commits and snippets

This commit is contained in:
Douwe Maan 2017-03-15 18:58:55 -06:00 committed by Luke "Jared" Bennett
parent f6f6aaf593
commit 80b2e18fb6
No known key found for this signature in database
GPG Key ID: 402ED51FB5D306C2
1 changed files with 1 additions and 1 deletions

View File

@ -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 }