diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2019-01-23 11:36:29 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2019-01-25 10:40:13 +0100 |
commit | 8850da27c3a1db7611c856d937a8b93e6b969b86 (patch) | |
tree | c1844a72b96fda17689ef9537148374951d0a2f4 /app/models/concerns | |
parent | cd9409f003019819eb9b8e041d8fd645e222f23b (diff) | |
download | gitlab-ce-8850da27c3a1db7611c856d937a8b93e6b969b86.tar.gz |
Extract common `when` code between CI/CD processables
Diffstat (limited to 'app/models/concerns')
-rw-r--r-- | app/models/concerns/ci/processable.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/concerns/ci/processable.rb b/app/models/concerns/ci/processable.rb index e112bae7d42..1c78b1413a8 100644 --- a/app/models/concerns/ci/processable.rb +++ b/app/models/concerns/ci/processable.rb @@ -17,7 +17,7 @@ module Ci end def when - raise NotImplementedError + read_attribute(:when) || 'on_success' end def expanded_environment_name |