1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-20 06:02:39 +00:00

introduced constructor on TournamentMatchGen

This commit is contained in:
RJ Osborne
2015-05-23 05:08:16 -04:00
parent 15d1d491f1
commit 44ec0b55f0
2 changed files with 28 additions and 21 deletions

View File

@@ -36,7 +36,7 @@ class Tournament < ActiveRecord::Base
end
def generateMatchups
@matches = Tournamentmatchgen.new.genMatches(self)
@matches = Tournamentmatchgen.new(self).genMatches()
end
def destroyAllMatches
@@ -44,6 +44,3 @@ class Tournament < ActiveRecord::Base
end
end