We don't have to save, transition would save for us

This commit is contained in:
Lin Jen-Shin 2017-04-06 21:38:45 +08:00
parent 057c0d7a5c
commit 38c324b95f

View file

@ -97,7 +97,7 @@ module Ci
end end
after_transition :canceled => any - [:canceled] do |pipeline| after_transition :canceled => any - [:canceled] do |pipeline|
pipeline.update(auto_canceled_by: nil) pipeline.auto_canceled_by = nil
end end
end end