diff options
author | Robert Speicher <rspeicher@gmail.com> | 2019-04-05 17:33:11 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2019-04-05 17:33:11 +0300 |
commit | 0912fd8ad203fce9f0d4a61b2dd24f1f34c5474e (patch) | |
tree | 642f1e10917a6851e77044b981b6b063ea937e3c | |
parent | 082607e980b606fdb3041d787255788bbcb13ee1 (diff) | |
parent | 85c94725e56ef90bdfd0c22cbf96a27110483707 (diff) |
Merge branch '59719-const-get' into 'master'
Do not inherit when calling const_get
See merge request gitlab-org/gitlab-ce!26985
-rw-r--r-- | app/models/concerns/prometheus_adapter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/concerns/prometheus_adapter.rb b/app/models/concerns/prometheus_adapter.rb index decbbbd87f2..258c819f243 100644 --- a/app/models/concerns/prometheus_adapter.rb +++ b/app/models/concerns/prometheus_adapter.rb @@ -36,7 +36,7 @@ module PrometheusAdapter def calculate_reactive_cache(query_class_name, *args) return unless prometheus_client - data = Kernel.const_get(query_class_name).new(prometheus_client_wrapper).query(*args) + data = Object.const_get(query_class_name, false).new(prometheus_client_wrapper).query(*args) { success: true, data: data, |