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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user