1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-01 12:15:25 +00:00

Matchups_array completely removed. I do not know why has_many matches

does not work in tournaments. The solution was to add a matches
method.
This commit is contained in:
2015-04-27 09:50:41 -04:00
parent 6d39bcb868
commit 9c5c12c413
6 changed files with 21 additions and 13 deletions

View File

@@ -6,8 +6,7 @@ one:
address: Some Place
director: Jacob Cody Wimer
director_email: jacob.wimer@gmail.com
matchups_array:

View File

@@ -42,7 +42,8 @@ class PoolbracketMatchupsTest < ActionDispatch::IntegrationTest
end
def checkForByeInPool(tournament)
@matchups = tournament.generateMatchups
tournament.upcomingMatches
@matchups = tournament.matches
tournament.weights.each do |w|
w.wrestlers.each do |wr|
@round = 1