1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-06 22:44:14 +00:00

Added date to tournament

This commit is contained in:
2015-12-30 18:48:49 +00:00
parent 6d21e8ebdf
commit c82d6d727b
12 changed files with 48 additions and 17 deletions

View File

@@ -1,7 +1,7 @@
class StaticPagesController < ApplicationController
def my_tournaments
@tournaments = current_user.tournaments.order('updated_at desc')
@tournaments = current_user.tournaments.sort_by{|t| t.daysUntil}
end
def not_allowed