diff options
Diffstat (limited to 'app/models/commit.rb')
-rw-r--r-- | app/models/commit.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb index 859522c..60d7c3d 100644 --- a/app/models/commit.rb +++ b/app/models/commit.rb @@ -161,4 +161,10 @@ class Commit < ActiveRecord::Base def finished_at end + + def coverage + if builds.size == 1 + builds.first.coverage + end + end end |