From 70f410baa5d27e51b0a2f324229ed5076e34dbd8 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Wed, 4 Nov 2015 11:44:43 -0500 Subject: [PATCH] Sort cards by updated_at in admin --- app/controllers/admin/cards_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/cards_controller.rb b/app/controllers/admin/cards_controller.rb index e51a317..b13d993 100644 --- a/app/controllers/admin/cards_controller.rb +++ b/app/controllers/admin/cards_controller.rb @@ -3,7 +3,7 @@ class Admin::CardsController < Admin::BaseController after_action :verify_authorized def index - @cards = Card.includes(:character).all + @cards = Card.includes(:character).all.order(updated_at: :desc) authorize Card end