Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2017-09-07 16:08:51 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2017-09-07 16:08:51 +0300
commit83c1bb688c9fff5c146dcc5fb74fe74c1d948d34 (patch)
tree352d2754f7dbb9c5ee306eebc4bf1af90f901c41 /app/helpers/auto_devops_helper.rb
parentd02f36d63c844c2a7ecd825df90745cb7951d982 (diff)
Add has_auto_devops_implicitly_disabled
Diffstat (limited to 'app/helpers/auto_devops_helper.rb')
-rw-r--r--app/helpers/auto_devops_helper.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/helpers/auto_devops_helper.rb b/app/helpers/auto_devops_helper.rb
index e4907f631ef..4ff38f86b5f 100644
--- a/app/helpers/auto_devops_helper.rb
+++ b/app/helpers/auto_devops_helper.rb
@@ -2,7 +2,6 @@ module AutoDevopsHelper
def show_auto_devops_callout?(project)
show_callout?('auto_devops_settings_dismissed') &&
can?(current_user, :admin_pipeline, project) &&
- !current_application_settings.auto_devops_enabled? &&
- project.auto_devops&.enabled.nil?
+ project.has_auto_devops_implicitly_disabled?
end
end