diff options
Diffstat (limited to 'app/workers/wikis/git_garbage_collect_worker.rb')
-rw-r--r-- | app/workers/wikis/git_garbage_collect_worker.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/workers/wikis/git_garbage_collect_worker.rb b/app/workers/wikis/git_garbage_collect_worker.rb index 1b455c50618..b00190c6b98 100644 --- a/app/workers/wikis/git_garbage_collect_worker.rb +++ b/app/workers/wikis/git_garbage_collect_worker.rb @@ -7,6 +7,12 @@ module Wikis private + # Used for getting a project/group out of the resource in order to scope a feature flag + # Can be removed within https://gitlab.com/gitlab-org/gitlab/-/issues/353607 + def container(resource) + resource.container + end + override :find_resource def find_resource(id) Project.find(id).wiki |