Welcome to mirror list, hosted at ThFree Co, Russian Federation.

discussion_note.rb « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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