From 23de8a55032e1724252111aec0956184e6d3e628 Mon Sep 17 00:00:00 2001 From: jcwimer Date: Wed, 23 Dec 2015 15:32:56 +0000 Subject: [PATCH] Order tournaments by updated_at --- app/controllers/tournaments_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/tournaments_controller.rb b/app/controllers/tournaments_controller.rb index 0e15f7f..b650612 100644 --- a/app/controllers/tournaments_controller.rb +++ b/app/controllers/tournaments_controller.rb @@ -71,7 +71,7 @@ class TournamentsController < ApplicationController end def index - @tournaments = Tournament.all.limit(50).includes(:schools,:weights,:mats,:matches,:user,:wrestlers) + @tournaments = Tournament.all.limit(50).includes(:schools,:weights,:mats,:matches,:user,:wrestlers).order('updated_at desc') end def show