From face19997d2356b49a8a991d764415886a83c37a Mon Sep 17 00:00:00 2001 From: Jan Provaznik Date: Mon, 25 Jun 2018 08:22:42 +0000 Subject: Fix auto_cancel_pending_pipelines check --- app/models/project.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/models/project.rb b/app/models/project.rb index 0d777515536..d91d7dcfe9a 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -2019,6 +2019,10 @@ class Project < ActiveRecord::Base end request_cache(:any_lfs_file_locks?) { self.id } + def auto_cancel_pending_pipelines? + auto_cancel_pending_pipelines == 'enabled' + end + private def storage -- cgit v1.2.1