summaryrefslogtreecommitdiff
path: root/app/models/commit.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/commit.rb')
-rw-r--r--app/models/commit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb
index ecc396045f0..e96bfee1900 100644
--- a/app/models/commit.rb
+++ b/app/models/commit.rb
@@ -10,7 +10,7 @@ class Commit
attr_mentionable :safe_message, pipeline: :single_line
participant :author, :committer, :notes
- delegate :duration, :started_at, :finished_at, :coverage, to: :ci_commit
+ delegate :duration, :started_at, :finished_at, :coverage, to: :ci_commit, allow_nil: true
attr_accessor :project