From 8cbdf4f56fc3d49bccc1353cc94daf8d033b6134 Mon Sep 17 00:00:00 2001 From: Jan Provaznik Date: Fri, 22 Jun 2018 22:03:48 +0200 Subject: Added Project#auto_cancel_pending_pipelines? method --- app/models/project.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/models/project.rb') 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