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
path: root/app
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-11-24 09:09:56 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-11-24 09:09:56 +0300
commit3d1f123313fc350f217081c6ccf38169420bf92d (patch)
tree8c2849e22d07e1db01f2748613060a5dadebf71f /app
parentbec5b7b1b68ddc670a1566a36037402c3c37e0f3 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app')
-rw-r--r--app/controllers/groups/work_items_controller.rb2
-rw-r--r--app/models/description_version.rb2
-rw-r--r--app/models/work_item.rb4
3 files changed, 7 insertions, 1 deletions
diff --git a/app/controllers/groups/work_items_controller.rb b/app/controllers/groups/work_items_controller.rb
index ece279da778..bfb5b74d2a5 100644
--- a/app/controllers/groups/work_items_controller.rb
+++ b/app/controllers/groups/work_items_controller.rb
@@ -20,3 +20,5 @@ module Groups
end
end
end
+
+Groups::WorkItemsController.prepend_mod
diff --git a/app/models/description_version.rb b/app/models/description_version.rb
index 05cca9f931f..71c16621c9e 100644
--- a/app/models/description_version.rb
+++ b/app/models/description_version.rb
@@ -31,4 +31,4 @@ class DescriptionVersion < ApplicationRecord
end
end
-DescriptionVersion.prepend_mod_with('DescriptionVersion')
+DescriptionVersion.prepend_mod
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