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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/issue_link.rb')
-rw-r--r--app/models/issue_link.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/models/issue_link.rb b/app/models/issue_link.rb
index ecf9f2eaf6c..1bd34aa0083 100644
--- a/app/models/issue_link.rb
+++ b/app/models/issue_link.rb
@@ -10,10 +10,10 @@ class IssueLink < ApplicationRecord
scope :for_source_issue, ->(issue) { where(source_id: issue.id) }
scope :for_target_issue, ->(issue) { where(target_id: issue.id) }
- private
-
- def issuable_type
- :issue
+ class << self
+ def issuable_type
+ :issue
+ end
end
end