mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-11 16:01:56 +00:00
Added a bout board
This commit is contained in:
@@ -40,5 +40,13 @@ class Tournament < ActiveRecord::Base
|
||||
m.save!
|
||||
end
|
||||
end
|
||||
|
||||
def assignFirstMatchesToMats
|
||||
until mats.order(:id).last.matches.count == 4
|
||||
mats.order(:id).each do |m|
|
||||
m.assignNextMatch
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user