diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-10-26 08:01:28 +0000 |
---|---|---|
committer | Kamil TrzciĆski <ayufan@ayufan.eu> | 2018-10-26 08:01:28 +0000 |
commit | 0c9ad4826a79fa6d1cbbf8c4b1e12af9e4443515 (patch) | |
tree | 5f394df7397dbebc146514340955165fc8450a75 /app/models | |
parent | 2bbfca8240c605e3b1c4aed18cadda4f6403e138 (diff) | |
download | gitlab-ce-0c9ad4826a79fa6d1cbbf8c4b1e12af9e4443515.tar.gz |
Support backward compatibility when introduce new failure reason
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/commit_status.rb | 2 |
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| |