diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-04-06 21:38:45 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-04-06 21:38:45 +0800 |
commit | 38c324b95fb10d7d49a2d54e1d2cb53528f03d3f (patch) | |
tree | 5470686ca98dd5042cc97fde0f3464e23045d391 | |
parent | 057c0d7a5c062f3030bcc46614ef2442009002de (diff) | |
download | gitlab-ce-38c324b95fb10d7d49a2d54e1d2cb53528f03d3f.tar.gz |
We don't have to save, transition would save for us
-rw-r--r-- | app/models/ci/pipeline.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ci/pipeline.rb b/app/models/ci/pipeline.rb index e03def25755..23c6ad819c4 100644 --- a/app/models/ci/pipeline.rb +++ b/app/models/ci/pipeline.rb @@ -97,7 +97,7 @@ module Ci end after_transition :canceled => any - [:canceled] do |pipeline| - pipeline.update(auto_canceled_by: nil) + pipeline.auto_canceled_by = nil end end |