debian-mirror-gitlab/app/helpers/suggest_pipeline_helper.rb
2020-04-08 14:13:33 +05:30

9 lines
218 B
Ruby

# frozen_string_literal: true
module SuggestPipelineHelper
def should_suggest_gitlab_ci_yml?
Feature.enabled?(:suggest_pipeline) &&
current_user &&
params[:suggest_gitlab_ci_yml] == 'true'
end
end