diff options
Diffstat (limited to 'app/presenters')
-rw-r--r-- | app/presenters/clusterable_presenter.rb | 4 | ||||
-rw-r--r-- | app/presenters/group_clusterable_presenter.rb | 4 | ||||
-rw-r--r-- | app/presenters/project_clusterable_presenter.rb | 4 |
3 files changed, 12 insertions, 0 deletions
diff --git a/app/presenters/clusterable_presenter.rb b/app/presenters/clusterable_presenter.rb index cff0e74d6ea..9cc93d7f0c6 100644 --- a/app/presenters/clusterable_presenter.rb +++ b/app/presenters/clusterable_presenter.rb @@ -43,4 +43,8 @@ class ClusterablePresenter < Gitlab::View::Presenter::Delegated def cluster_path(cluster, params = {}) raise NotImplementedError end + + def is_project? + raise NotImplementedError + end end diff --git a/app/presenters/group_clusterable_presenter.rb b/app/presenters/group_clusterable_presenter.rb index 22d3ba9db35..5a893559f12 100644 --- a/app/presenters/group_clusterable_presenter.rb +++ b/app/presenters/group_clusterable_presenter.rb @@ -12,4 +12,8 @@ class GroupClusterablePresenter < ClusterablePresenter def cluster_path(cluster, params = {}) group_cluster_path(clusterable, cluster, params) end + + def is_project? + false + end end diff --git a/app/presenters/project_clusterable_presenter.rb b/app/presenters/project_clusterable_presenter.rb index 12077b2e735..4b74c9beb95 100644 --- a/app/presenters/project_clusterable_presenter.rb +++ b/app/presenters/project_clusterable_presenter.rb @@ -12,4 +12,8 @@ class ProjectClusterablePresenter < ClusterablePresenter def cluster_path(cluster, params = {}) project_cluster_path(clusterable, cluster, params) end + + def is_project? + true + end end |