Commit 5b5d99dd authored by Adrien Kohlbecker's avatar Adrien Kohlbecker Committed by Kamil Trzciński

Fix uninitialized constant SystemDashboardService in custom dashboards

parent 1e813889
......@@ -40,7 +40,7 @@ module Metrics
# All custom metrics are displayed on the system dashboard.
# Nil is acceptable as we'll default to the system dashboard.
def valid_dashboard?(dashboard)
dashboard.nil? || SystemDashboardService.system_dashboard?(dashboard)
dashboard.nil? || ::Metrics::Dashboard::SystemDashboardService.system_dashboard?(dashboard)
end
end
......
---
title: Fix uninitialized constant SystemDashboardService
merge_request: 19453
author:
type: fixed
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