summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-10-26 08:01:28 +0000
committerKamil TrzciƄski <ayufan@ayufan.eu>2018-10-26 08:01:28 +0000
commit0c9ad4826a79fa6d1cbbf8c4b1e12af9e4443515 (patch)
tree5f394df7397dbebc146514340955165fc8450a75 /app/models
parent2bbfca8240c605e3b1c4aed18cadda4f6403e138 (diff)
downloadgitlab-ce-0c9ad4826a79fa6d1cbbf8c4b1e12af9e4443515.tar.gz
Support backward compatibility when introduce new failure reason
Diffstat (limited to 'app/models')
-rw-r--r--app/models/commit_status.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/commit_status.rb b/app/models/commit_status.rb
index 06507345fe8..344f091c872 100644
--- a/app/models/commit_status.rb
+++ b/app/models/commit_status.rb
@@ -109,7 +109,7 @@ class CommitStatus < ActiveRecord::Base
before_transition any => :failed do |commit_status, transition|
failure_reason = transition.args.first
- commit_status.failure_reason = failure_reason
+ commit_status.failure_reason = CommitStatus.failure_reasons[failure_reason]
end
after_transition do |commit_status, transition|