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

issue_link.rb « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1c596ad03412fb20eecbd50858d5fdb3d9a245f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

class IssueLink < ApplicationRecord
  include LinkableItem

  belongs_to :source, class_name: 'Issue'
  belongs_to :target, class_name: 'Issue'

  class << self
    def issuable_type
      :issue
    end
  end
end

IssueLink.prepend_mod_with('IssueLink')