- project = local_assigns.fetch(:project) - metric = local_assigns.fetch(:metric) #js-custom-metrics{ data: custom_metrics_data(project, metric) }