summaryrefslogtreecommitdiff
path: root/app/helpers/clusters_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/clusters_helper.rb')
-rw-r--r--app/helpers/clusters_helper.rb19
1 files changed, 1 insertions, 18 deletions
diff --git a/app/helpers/clusters_helper.rb b/app/helpers/clusters_helper.rb
index 4b4945adc4b..360885fe179 100644
--- a/app/helpers/clusters_helper.rb
+++ b/app/helpers/clusters_helper.rb
@@ -6,14 +6,6 @@ module ClustersHelper
false
end
- def clusterable
- @project
- end
-
- def can_create_cluster?
- can?(current_user, :create_cluster, clusterable)
- end
-
def render_gcp_signup_offer
return if Gitlab::CurrentSettings.current_application_settings.hide_third_party_offers?
return unless show_gcp_signup_offer?
@@ -24,17 +16,8 @@ module ClustersHelper
end
def hidden_clusterable_fields
- clusterable_params.map do |key, value|
+ clusterable.clusterable_params.map do |key, value|
hidden_field_tag(key, value)
end.reduce(&:safe_concat)
end
-
- def clusterable_params
- case clusterable
- when Project
- { project_id: clusterable.to_param, namespace_id: clusterable.namespace.to_param }
- else
- {}
- end
- end
end