diff options
| author | Z.J. van de Weg <git@zjvandeweg.nl> | 2016-12-27 10:43:23 +0100 |
|---|---|---|
| committer | Z.J. van de Weg <git@zjvandeweg.nl> | 2016-12-27 10:43:23 +0100 |
| commit | 1955bcaa2289ac573db42352a19deea33b39a512 (patch) | |
| tree | 6a865ddc7b334d455d293c7a3aa45028a73f92c9 | |
| parent | 796b5b575fe9ce54a4bee26cf389f135313e4d41 (diff) | |
| download | gitlab-ce-zj-revert-polymorphic-url.tar.gz | |
Revert specific URLzj-revert-polymorphic-url
| -rw-r--r-- | lib/gitlab/chat_commands/deploy.rb | 6 |
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 |
