diff options
author | João Cunha <j.a.cunha@gmail.com> | 2019-03-04 13:08:53 +0300 |
---|---|---|
committer | jerasmus <jerasmus@gitlab.com> | 2019-03-05 09:32:51 +0300 |
commit | 1186a6fd5408737f1995ac16ffc18f6aaf431cce (patch) | |
tree | d1527b51e86d197ddd216190efeb41fb39d95bc1 /app/presenters/group_clusterable_presenter.rb | |
parent | f8234d9a086a43a95698da13d2734fe62ddb9ad7 (diff) |
Sends update route to the client
- extends presenters to include update endpoint path
- sends path to the client on clusters clusters show view.
Diffstat (limited to 'app/presenters/group_clusterable_presenter.rb')
-rw-r--r-- | app/presenters/group_clusterable_presenter.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/presenters/group_clusterable_presenter.rb b/app/presenters/group_clusterable_presenter.rb index ef6bbc0d109..f5b0bb64487 100644 --- a/app/presenters/group_clusterable_presenter.rb +++ b/app/presenters/group_clusterable_presenter.rb @@ -14,6 +14,11 @@ class GroupClusterablePresenter < ClusterablePresenter install_applications_group_cluster_path(clusterable, cluster, application) end + override :update_applications_cluster_path + def update_applications_cluster_path(cluster, application) + update_applications_group_cluster_path(clusterable, cluster, application) + end + override :cluster_path def cluster_path(cluster, params = {}) group_cluster_path(clusterable, cluster, params) |