1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-07 06:54:16 +00:00

Got stuff working with matches being saved individually.

This commit is contained in:
2015-04-26 15:49:13 -04:00
parent 391e523b2e
commit dd44efa869
12 changed files with 97 additions and 128 deletions

View File

@@ -16,14 +16,11 @@ class Pool
@bout = b.map
@bout.each do |bout|
if bout[0] != nil and bout[1] != nil
@match = Matchup.new
@match = Match.new
@match.w1 = bout[0].id
@match.w1_name = bout[0].name
@match.w2 = bout[1].id
@match.w2_name = bout[1].name
@match.weight_id = weight.id
@match.round = index + 1
@match.weight_max = weight.max
matches << @match
end
end