From fe5735a8602b286953477eff5c58ce88b0054c7d Mon Sep 17 00:00:00 2001 From: Kamil Trzcinski Date: Fri, 3 Jun 2016 13:34:38 +0200 Subject: Delegate to pipeline instead of commit --- app/models/commit_status.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/models/commit_status.rb b/app/models/commit_status.rb index 98a8b541e96..e53c483b904 100644 --- a/app/models/commit_status.rb +++ b/app/models/commit_status.rb @@ -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 -- cgit v1.2.3