• Thong Kuah's avatar
    Do not inherit when calling const_get · 480d57d2
    Thong Kuah authored
    Otherwise we will get really confusing behavior in development
    environment (where eager_load is false) where it attempts to load
    `Prometheus::Queries::EnvironmentQuery` when query_class_name is
    `Gitlab::Prometheus::Queries::EnvironmentQuery`, the `Prometheus` module
    is loaded from a gem but not anything in `Gitlab::Prometheus`.
    480d57d2
prometheus_adapter.rb 1.47 KB