diff options
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') |