mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-14 17:06:46 +00:00
Generated bouts and rounds. Need to fix rounds for odd numbered pools.
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
class Match < ActiveRecord::Base
|
||||
belongs_to :tournament
|
||||
WIN_TYPES = ["Decision", "Major", "Tech Fall", "Pin", "Forfeit", "Injury Default", "Default"]
|
||||
|
||||
|
||||
attr_accessor :weight_max
|
||||
|
||||
def weight_max
|
||||
@guy = Wrestler.find(self.r_id)
|
||||
@weight = Weight.find(@guy.weight_id)
|
||||
return @weight.max
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user