1
0
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:
2015-12-04 19:50:32 +00:00
parent 1591d8d7de
commit 68fe5e4f90
6 changed files with 13 additions and 16 deletions

View File

@@ -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