Do not inherit when calling const_get
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`.
Showing
Please register or sign in to comment