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

Revert "Revert "Moving away from matchups_array and saving matches individually""

This reverts commit 7b3fe2aaad.
This commit is contained in:
2015-04-25 21:44:08 -04:00
parent 7b3fe2aaad
commit b86211102b
6 changed files with 67 additions and 11 deletions

View File

@@ -2,4 +2,13 @@ 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