summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorMatija Čupić <matteeyah@gmail.com>2017-12-18 14:13:57 +0100
committerMatija Čupić <matteeyah@gmail.com>2017-12-18 14:13:57 +0100
commitdd66c6a2d8fa7f84f200e150791dc4a3953111d9 (patch)
treea828b684134169c9d06a29f60658c907a68ff897 /app/helpers
parent56f719f86767a155fa721ff35f8614359092276d (diff)
downloadgitlab-ce-dd66c6a2d8fa7f84f200e150791dc4a3953111d9.tar.gz
Use helper for feature check in cluster partials
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/clusters_helper.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/helpers/clusters_helper.rb b/app/helpers/clusters_helper.rb
new file mode 100644
index 00000000000..60704af3497
--- /dev/null
+++ b/app/helpers/clusters_helper.rb
@@ -0,0 +1,5 @@
+module ClustersHelper
+ def has_multiple_clusters?(project)
+ project.feature_available?(:multiple_clusters)
+ end
+end