1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00

Record score in db and update when match is updated

This commit is contained in:
2015-11-17 15:28:54 +00:00
parent 045b869607
commit 1aee738eb5
5 changed files with 13 additions and 6 deletions

View File

@@ -60,7 +60,7 @@ class TournamentsController < ApplicationController
def team_scores
@schools = @tournament.schools
@schools.sort_by{|s| s.score}
@schools.sort_by{|s| s.score}.reverse!
end