mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Updated views for wrestlers show page
This commit is contained in:
@@ -13,7 +13,7 @@ class Tournament < ActiveRecord::Base
|
||||
["Pool to bracket"]
|
||||
end
|
||||
|
||||
def createCustomWeights(value)
|
||||
def createCustomWeights(value)
|
||||
weights.destroy_all
|
||||
if value == 'hs'
|
||||
Weight::HS_WEIGHT_CLASSES.each do |w|
|
||||
@@ -48,4 +48,8 @@ class Tournament < ActiveRecord::Base
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def totalRounds
|
||||
self.matches.sort_by{|m| m.bout_number}.last.round
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user