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:
Diffstat (limited to 'lib/gitlab/patch/prependable.rb')
-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)