Enable discussions on issues, commits and snippets
This commit is contained in:
parent
f6f6aaf593
commit
80b2e18fb6
|
@ -1,5 +1,5 @@
|
||||||
class DiscussionNote < Note
|
class DiscussionNote < Note
|
||||||
NOTEABLE_TYPES = %w(MergeRequest).freeze
|
NOTEABLE_TYPES = %w(MergeRequest Issue Commit Snippet).freeze
|
||||||
|
|
||||||
validates :noteable_type, inclusion: { in: NOTEABLE_TYPES }
|
validates :noteable_type, inclusion: { in: NOTEABLE_TYPES }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue