1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00
Files
wrestlingdev.com/app/models/match.rb

15 lines
262 B
Ruby

class Match < ActiveRecord::Base
belongs_to :tournament
WIN_TYPES = ["Decision", "Major", "Tech Fall", "Pin", "Forfeit", "Injury Default", "Default", "DQ"]
def w1_name
Wrestler.find(self.w1).name
end
def w2_name
Wrestler.find(self.w2).name
end
end