1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-14 00:49:54 +00:00

Ripped state out of Poolbracket

Implicitly added tournament_id to matches generated by Poolbracket
Removed explicit tournament assignment at save
This commit is contained in:
RJ Osborne
2015-05-25 00:07:55 -04:00
parent 091b7c4181
commit c855da0e6e
2 changed files with 66 additions and 71 deletions

View File

@@ -44,7 +44,6 @@ class Tournamentmatchgen
def saveMatches
@tournament.save!
@matches.each do |m|
m.tournament_id = @tournament.id
m.save
end
end