Pass proper endpoint path to MR pipelines partial

This commit is contained in:
Grzegorz Bizon 2017-02-07 15:48:35 +01:00
parent f97d7769e0
commit 9c916bf528
1 changed files with 3 additions and 1 deletions

View File

@ -1 +1,3 @@
= render 'projects/commit/pipelines_list', endpoint: pipelines_namespace_project_merge_request_path(@project.namespace, @project, @merge_request)
- endpoint_path = local_assigns[:endpoint] || pipelines_namespace_project_merge_request_path(@project.namespace, @project, @merge_request)
= render 'projects/commit/pipelines_list', endpoint: endpoint_path