summaryrefslogtreecommitdiff
path: root/app/presenters
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2018-11-06 15:19:23 -0600
committerThong Kuah <tkuah@gitlab.com>2018-11-08 23:28:30 +1300
commit83b8321aeab33e8814c717625a592ffb1e27bd44 (patch)
tree2a2e5557e9d371cd786f4705011541f318fe4714 /app/presenters
parent82391594e3cb4afa0853b732bd076dc21d62af28 (diff)
downloadgitlab-ce-83b8321aeab33e8814c717625a592ffb1e27bd44.tar.gz
Rename is_project? to project?
Diffstat (limited to 'app/presenters')
-rw-r--r--app/presenters/clusterable_presenter.rb2
-rw-r--r--app/presenters/group_clusterable_presenter.rb2
-rw-r--r--app/presenters/project_clusterable_presenter.rb2
3 files changed, 3 insertions, 3 deletions
diff --git a/app/presenters/clusterable_presenter.rb b/app/presenters/clusterable_presenter.rb
index 9cc93d7f0c6..6de967a58e9 100644
--- a/app/presenters/clusterable_presenter.rb
+++ b/app/presenters/clusterable_presenter.rb
@@ -44,7 +44,7 @@ class ClusterablePresenter < Gitlab::View::Presenter::Delegated
raise NotImplementedError
end
- def is_project?
+ def project?
raise NotImplementedError
end
end
diff --git a/app/presenters/group_clusterable_presenter.rb b/app/presenters/group_clusterable_presenter.rb
index 5a893559f12..6da4dbfeaa4 100644
--- a/app/presenters/group_clusterable_presenter.rb
+++ b/app/presenters/group_clusterable_presenter.rb
@@ -13,7 +13,7 @@ class GroupClusterablePresenter < ClusterablePresenter
group_cluster_path(clusterable, cluster, params)
end
- def is_project?
+ def project?
false
end
end
diff --git a/app/presenters/project_clusterable_presenter.rb b/app/presenters/project_clusterable_presenter.rb
index 4b74c9beb95..2aea31e8bbf 100644
--- a/app/presenters/project_clusterable_presenter.rb
+++ b/app/presenters/project_clusterable_presenter.rb
@@ -13,7 +13,7 @@ class ProjectClusterablePresenter < ClusterablePresenter
project_cluster_path(clusterable, cluster, params)
end
- def is_project?
+ def project?
true
end
end