Merge branch '59719-const-get' into 'master'

Do not inherit when calling const_get

See merge request gitlab-org/gitlab-ce!26985
This commit is contained in:
Robert Speicher 2019-04-05 14:33:11 +00:00
commit 0912fd8ad2
1 changed files with 1 additions and 1 deletions

View File

@ -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,