blob: 510aefbf609012d2238e1dc5aa6d69e48ba5e8c9 (
plain)
1
2
3
4
5
6
7
8
9
|
class DiscussionNote < Note
NOTEABLE_TYPES = %w(MergeRequest Issue Commit Snippet).freeze
validates :noteable_type, inclusion: { in: NOTEABLE_TYPES }
def discussion_class(*)
SimpleDiscussion
end
end
|