diff options
Diffstat (limited to 'app/models/work_item.rb')
-rw-r--r-- | app/models/work_item.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/work_item.rb b/app/models/work_item.rb index a62d77939bf..05c230628ce 100644 --- a/app/models/work_item.rb +++ b/app/models/work_item.rb @@ -37,6 +37,10 @@ class WorkItem < Issue } class << self + def find_by_namespace_and_iid!(namespace, iid) + find_by!(namespace: namespace, iid: iid) + end + def assignee_association_name 'issue' end |