Skip to content
  • Thong Kuah's avatar
    Do not inherit when calling const_get · b4605ed72c58
    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`.
    b4605ed72c58