mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-02 04:35:26 +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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user