diff options
author | Jan Provaznik <jprovaznik@gitlab.com> | 2018-06-22 22:03:48 +0200 |
---|---|---|
committer | Jan Provaznik <jprovaznik@gitlab.com> | 2018-06-22 22:25:17 +0200 |
commit | 8cbdf4f56fc3d49bccc1353cc94daf8d033b6134 (patch) | |
tree | b398668aac530a7f12ba82bfbf8b00dc8b6ec12d /app/models/project.rb | |
parent | ec93b3fb4b049ba166bcaf5e6c5593a45b793fdf (diff) | |
download | gitlab-ce-rails5-enum-pipeline-check.tar.gz |
Added Project#auto_cancel_pending_pipelines? methodrails5-enum-pipeline-check
Diffstat (limited to 'app/models/project.rb')
-rw-r--r-- | app/models/project.rb | 4 |
1 files changed, 4 insertions, 0 deletions
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 |