about summary refs log tree commit diff
path: root/app/controllers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-07-28 23:15:17 +0200
committernightpool <eg1290@gmail.com>2018-07-28 17:15:17 -0400
commit79a1f667c5388ea025b2c160c029191d14e4cfc5 (patch)
tree6754a369cd7659515fcb2d3b3225f11176abc037 /app/controllers
parentcc94b1d95a7baba4435010ca4e5d7f3425140275 (diff)
Order invites by recent first (#8091)
Fix #8085
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/invites_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/invites_controller.rb b/app/controllers/invites_controller.rb
index 5c30313f4..3aaa2776f 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