1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-07 14:57:48 +00:00

Mock advancment from pools to brackets

This commit is contained in:
2015-10-08 17:31:27 -04:00
parent b449aa530b
commit 516dbe66ad
6 changed files with 92 additions and 3 deletions

View File

@@ -26,5 +26,15 @@ class Match < ActiveRecord::Base
def weight_max
Weight.find(self.weight_id).max
end
def replaceLoserNameWithWrestler(w,loserName)
if self.loser1_name == loserName
self.w1 = w.id
self.save
end
if self.loser2_name == loserName
self.w2 = w.id
self.save
end
end
end