diff --git a/app/models/match.rb b/app/models/match.rb index 7891276..6e15b10 100644 --- a/app/models/match.rb +++ b/app/models/match.rb @@ -28,6 +28,8 @@ class Match < ApplicationRecord end def winner + return teams.first if single_team? + finished? ? current_leading_team : nil end