1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-15 20:46:57 +00:00

Fixed win displays for brackets

This commit is contained in:
2015-12-16 12:51:32 +00:00
parent 41ca12c5d1
commit e2966c0456
2 changed files with 13 additions and 3 deletions

View File

@@ -43,7 +43,17 @@ class Match < ActiveRecord::Base
return ""
end
if self.finished == 1
return "(#{self.score})"
if self.win_type == "Default"
return "Def"
elsif self.win_type == "Injury Default"
return "Inj"
elsif self.win_type == "DQ"
return "DQ"
elsif self.win_type == "Forfeit"
return "For"
else
return "(#{self.score})"
end
end
end