summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2017-01-03 15:52:30 +0000
committerKamil Trzciński <ayufan@ayufan.eu>2017-01-03 15:52:30 +0000
commit447314c0f346a17279dfb6dbb5a36eb672e938de (patch)
treeda271c838a8161d0eba37b578c5f889899ee7fcd
parent3e1ac95ba91f8760605d595c9fea3d2f9434367c (diff)
parent1955bcaa2289ac573db42352a19deea33b39a512 (diff)
downloadgitlab-ce-447314c0f346a17279dfb6dbb5a36eb672e938de.tar.gz
Merge branch 'zj-revert-polymorphic-url' into 'master'
Revert specific URL See merge request !8321
-rw-r--r--lib/gitlab/chat_commands/deploy.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab/chat_commands/deploy.rb b/lib/gitlab/chat_commands/deploy.rb
index 0f70323810d..7127d2f6d04 100644
--- a/lib/gitlab/chat_commands/deploy.rb
+++ b/lib/gitlab/chat_commands/deploy.rb
@@ -49,9 +49,9 @@ module Gitlab
end
def url(subject)
- project = subject.project
-
- namespace_project_build_url(project.namespace.becomes(Namespace), project, subject)
+ polymorphic_url(
+ [subject.project.namespace.becomes(Namespace), subject.project, subject]
+ )
end
end
end