diff options
author | Matija Čupić <matteeyah@gmail.com> | 2017-12-18 14:13:57 +0100 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2017-12-18 14:13:57 +0100 |
commit | dd66c6a2d8fa7f84f200e150791dc4a3953111d9 (patch) | |
tree | a828b684134169c9d06a29f60658c907a68ff897 /app/helpers | |
parent | 56f719f86767a155fa721ff35f8614359092276d (diff) | |
download | gitlab-ce-dd66c6a2d8fa7f84f200e150791dc4a3953111d9.tar.gz |
Use helper for feature check in cluster partials
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/clusters_helper.rb | 5 |
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 |