Delegate to pipeline instead of commit

This commit is contained in:
Kamil Trzcinski 2016-06-03 13:34:38 +02:00
parent 08baa9983e
commit fe5735a860
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ class CommitStatus < ActiveRecord::Base
end
end
delegate :sha, :short_sha, to: :commit
delegate :sha, :short_sha, to: :pipeline
def before_sha
pipeline.before_sha || Gitlab::Git::BLANK_SHA