mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
12 lines
306 B
Ruby
12 lines
306 B
Ruby
class Match < ActiveRecord::Base
|
|
belongs_to :tournament
|
|
WIN_TYPES = ["Decision", "Major", "Tech Fall", "Pin", "Forfeit", "Injury Default", "Default", "DQ"]
|
|
attr_accessor :weight_max
|
|
|
|
def weight_max
|
|
@guy = Wrestler.find(self.r_id)
|
|
@weight = Weight.find(@guy.weight_id)
|
|
return @weight.max
|
|
end
|
|
end
|