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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user