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