summaryrefslogtreecommitdiff
path: root/app/presenters/clusters/cluster_presenter.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/presenters/clusters/cluster_presenter.rb')
-rw-r--r--app/presenters/clusters/cluster_presenter.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/presenters/clusters/cluster_presenter.rb b/app/presenters/clusters/cluster_presenter.rb
index dfdd8e82f97..78d632eb77c 100644
--- a/app/presenters/clusters/cluster_presenter.rb
+++ b/app/presenters/clusters/cluster_presenter.rb
@@ -11,5 +11,13 @@ module Clusters
def can_toggle_cluster?
can?(current_user, :update_cluster, cluster) && created?
end
+
+ def show_path
+ if cluster.project_type?
+ project_cluster_path(project, cluster)
+ else
+ raise NotImplementedError
+ end
+ end
end
end