Commit 0912fd8a authored by Robert Speicher's avatar Robert Speicher

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

Do not inherit when calling const_get

See merge request gitlab-org/gitlab-ce!26985
parents 082607e9 85c94725
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment