debian-mirror-gitlab/app/experiments/in_product_guidance_environments_webide_experiment.rb
2021-06-08 01:23:25 +05:30

16 lines
304 B
Ruby

# frozen_string_literal: true
class InProductGuidanceEnvironmentsWebideExperiment < ApplicationExperiment # rubocop:disable Gitlab/NamespacedClass
exclude :has_environments?
def control_behavior
false
end
private
def has_environments?
!context.project.environments.empty?
end
end