Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/custom_metrics_helper.rb')
-rw-r--r--app/helpers/custom_metrics_helper.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/helpers/custom_metrics_helper.rb b/app/helpers/custom_metrics_helper.rb
index fbea6d2050f..5ea386e268d 100644
--- a/app/helpers/custom_metrics_helper.rb
+++ b/app/helpers/custom_metrics_helper.rb
@@ -2,10 +2,8 @@
module CustomMetricsHelper
def custom_metrics_data(project, metric)
- custom_metrics_path = project.namespace.becomes(::Namespace)
-
{
- 'custom-metrics-path' => url_for([custom_metrics_path, project, metric]),
+ 'custom-metrics-path' => url_for([project, metric]),
'metric-persisted' => metric.persisted?.to_s,
'edit-project-service-path' => edit_project_service_path(project, PrometheusService),
'validate-query-path' => validate_query_project_prometheus_metrics_path(project),