From ff214e561687b0bf55c17649bad5103c68b6f2b4 Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Mon, 25 Dec 2023 16:17:44 +0900 Subject: [PATCH] Order admin events by archived and id desc --- app/controllers/admin/events_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/events_controller.rb b/app/controllers/admin/events_controller.rb index b26c235d9..d9fb76002 100644 --- a/app/controllers/admin/events_controller.rb +++ b/app/controllers/admin/events_controller.rb @@ -41,7 +41,7 @@ def unarchive end def index - @events = Event.order("archived").all + @events = Event.order(:archived, id: :desc) end end