1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-10 15:50:50 +00:00

Put finals in same round

This commit is contained in:
2015-12-07 15:24:42 +00:00
parent 5a09c60a41
commit d28e95ed31
4 changed files with 28 additions and 11 deletions

View File

@@ -50,6 +50,6 @@ class Tournament < ActiveRecord::Base
end
def totalRounds
self.matches.sort_by{|m| m.bout_number}.last.round
self.matches.sort_by{|m| m.round}.last.round
end
end