From 49bcbfcc8459f91fa02e2ad87248897d76a68a2a Mon Sep 17 00:00:00 2001 From: jcwimer Date: Wed, 23 Dec 2015 15:33:27 +0000 Subject: [PATCH] Order my_tournaments by updated_at --- app/controllers/static_pages_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/static_pages_controller.rb b/app/controllers/static_pages_controller.rb index 21a7c03..0d085c4 100644 --- a/app/controllers/static_pages_controller.rb +++ b/app/controllers/static_pages_controller.rb @@ -1,7 +1,7 @@ class StaticPagesController < ApplicationController def my_tournaments - @tournaments = current_user.tournaments + @tournaments = current_user.tournaments.order('updated_at desc') end def not_allowed