diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-10-12 21:08:31 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-10-12 21:08:31 +0300 |
commit | 884a65481f9e5365329f4ba371ac5b813c45a2f9 (patch) | |
tree | cc4030d36a739eaf91543d270db9a33093f51446 /app/models/issue_assignee.rb | |
parent | b17f0b91a66f2101a54dd1efed0c4973f04b1daf (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/issue_assignee.rb')
-rw-r--r-- | app/models/issue_assignee.rb | 1 |
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') |