mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-05-18 03:06:53 +00:00
Re-generating one weight classes matches - NEED TO REFACTOR and NEED TO WRITE TESTS
Code is repeated in the following classes: GenerateTournamentMatches PoolToBracketMatchGeneration PoolToBracketGenerateLoserNames WipeTournamentMatches
This commit is contained in:
@@ -9,6 +9,10 @@ class WipeTournamentMatches
|
||||
resetSchoolScores
|
||||
end
|
||||
|
||||
def wipeWeightMatches(weight)
|
||||
weight.matches.destroy_all
|
||||
end
|
||||
|
||||
def wipeMatches
|
||||
@tournament.matches.destroy_all
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user