From 79a1f667c5388ea025b2c160c029191d14e4cfc5 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sat, 28 Jul 2018 23:15:17 +0200 Subject: [PATCH] Order invites by recent first (#8091) Fix #8085 --- app/controllers/invites_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/invites_controller.rb b/app/controllers/invites_controller.rb index 5c30313f49..3aaa2776ff 100644 --- a/app/controllers/invites_controller.rb +++ b/app/controllers/invites_controller.rb @@ -38,7 +38,7 @@ class InvitesController < ApplicationController private def invites - Invite.where(user: current_user) + Invite.where(user: current_user).order(id: :desc) end def resource_params