1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-24 06:52:35 +00:00

Cleaned up a bunch of shit. Depricated model methods and controller methods.

This commit is contained in:
2015-04-15 13:42:12 +00:00
parent 451e6911f8
commit 2b1618c69b
9 changed files with 45 additions and 51 deletions

View File

@@ -2,19 +2,4 @@ class Match < ActiveRecord::Base
belongs_to :tournament
WIN_TYPES = ["Decision", "Major", "Tech Fall", "Pin", "Forfeit", "Injury Default", "Default", "DQ"]
def weight_max
@guy = Wrestler.find(self.r_id)
@weight = Weight.find(@guy.weight_id)
return @weight.max
end
def w1_name
return Wrestler.find(self.r_id).name
end
def w2_name
return Wrestler.find(self.g_id).name
end
end