summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2015-10-13 11:50:37 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2015-10-13 11:51:08 +0200
commite7cc554cc181cbb850f89af26e64a9ab56116f28 (patch)
tree2eb7e518e9028f706ae4b60750abef71a22f48d7
parent4bf69b0bd9a27e675c98eee998f24c0122030731 (diff)
downloadgitlab-ce-commit_status.tar.gz
Fix retry and cancel URLscommit_status
-rw-r--r--app/models/ci/build.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb
index cb6a1015210..f8c731a7bf7 100644
--- a/app/models/ci/build.rb
+++ b/app/models/ci/build.rb
@@ -219,13 +219,15 @@ module Ci
def cancel_url
if active?
- cancel_namespace_project_build_path(gl_project.namespace, gl_project, self, return_to: request.original_url)
+ Gitlab::Application.routes.url_helpers.
+ cancel_namespace_project_build_path(gl_project.namespace, gl_project, self, return_to: request.original_url)
end
end
def retry_url
if commands.present?
- cancel_namespace_project_build_path(gl_project.namespace, gl_project, self, return_to: request.original_url)
+ Gitlab::Application.routes.url_helpers.
+ cancel_namespace_project_build_path(gl_project.namespace, gl_project, self, return_to: request.original_url)
end
end