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
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-01-26 12:10:42 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-01-26 12:10:42 +0300
commitdb950c5706cdf47f7ccc2e02a4ffd691432ac5dc (patch)
treefdceeac88d490aae384eecc636964d7f03be9c24 /lib/gitlab/patch
parent7cd527ffd9cfef1c872faa5377eaccc3df6ef067 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/patch')
-rw-r--r--lib/gitlab/patch/prependable.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gitlab/patch/prependable.rb b/lib/gitlab/patch/prependable.rb
index b974c0b2c7f..7619fc317a1 100644
--- a/lib/gitlab/patch/prependable.rb
+++ b/lib/gitlab/patch/prependable.rb
@@ -8,6 +8,7 @@
# 2. Allow `prepended do; end` work like `included do; end`
# If we don't need anything above, we don't need this patch nor the concern!
+require_dependency 'gitlab/environment'
# rubocop:disable Gitlab/ModuleWithInstanceVariables
module Gitlab
module Patch
@@ -51,7 +52,7 @@ module Gitlab
end
# Hack to resolve https://gitlab.com/gitlab-org/gitlab/-/issues/23932
- extend class_methods_module if ENV['STATIC_VERIFICATION']
+ extend class_methods_module if Gitlab::Environment.static_verification?
end
def prepended(base = nil, &block)