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:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-10-12 21:08:31 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-10-12 21:08:31 +0300
commit884a65481f9e5365329f4ba371ac5b813c45a2f9 (patch)
treecc4030d36a739eaf91543d270db9a33093f51446 /app/models/issue_assignee.rb
parentb17f0b91a66f2101a54dd1efed0c4973f04b1daf (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/issue_assignee.rb')
-rw-r--r--app/models/issue_assignee.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/issue_assignee.rb b/app/models/issue_assignee.rb
index e57acbae546..7f3d552b3d9 100644
--- a/app/models/issue_assignee.rb
+++ b/app/models/issue_assignee.rb
@@ -8,6 +8,7 @@ class IssueAssignee < ApplicationRecord
scope :in_projects, ->(project_ids) { joins(:issue).where("issues.project_id in (?)", project_ids) }
scope :on_issues, ->(issue_ids) { where(issue_id: issue_ids) }
+ scope :for_assignee, ->(user) { where(assignee: user) }
end
IssueAssignee.prepend_if_ee('EE::IssueAssignee')