diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2017-01-03 15:52:30 +0000 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2017-01-03 15:52:30 +0000 |
commit | 447314c0f346a17279dfb6dbb5a36eb672e938de (patch) | |
tree | da271c838a8161d0eba37b578c5f889899ee7fcd /lib | |
parent | 3e1ac95ba91f8760605d595c9fea3d2f9434367c (diff) | |
parent | 1955bcaa2289ac573db42352a19deea33b39a512 (diff) | |
download | gitlab-ce-447314c0f346a17279dfb6dbb5a36eb672e938de.tar.gz |
Merge branch 'zj-revert-polymorphic-url' into 'master'
Revert specific URL
See merge request !8321
Diffstat (limited to 'lib')
-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 |