Commit c5aee6c0 authored by Matija Čupić's avatar Matija Čupić

Extract feature name into constant

parent fced2216
module CalloutsHelper
def show_gke_cluster_integration_callout?(kube_feature_name, project)
current_user && !user_dismissed?(kube_feature_name) &&
GKE_CLUSTER_INTEGRATION = 'gke_cluster_integration'.freeze
def show_gke_cluster_integration_callout?(project)
current_user && !user_dismissed?(GKE_CLUSTER_INTEGRATION) &&
(project.team.master?(current_user) ||
current_user == project.owner)
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment