1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00

Added 11 man bracket

This commit is contained in:
Jacob Cody Wimer
2014-01-31 18:33:58 -05:00
parent 931849f5d5
commit 1d024e0571
6 changed files with 167 additions and 1 deletions

View File

@@ -1,4 +1,10 @@
class Match < ActiveRecord::Base
belongs_to :tournament
WIN_TYPES = ["Decision", "Major", "Tech Fall", "Pin", "Forfeit", "Injury Default", "Default"]
def bout
@round_number = self.round * 1000
self.bout_number = @round_number + self.id
end
end