about summary refs log tree commit diff
path: root/app/controllers
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-07-29 23:37:14 +0200
committerGitHub <noreply@github.com>2019-07-29 23:37:14 +0200
commitf48c7689d230b915ed740a4774736bd5998cbc66 (patch)
tree3d883f06fe8e3abbc5653e029ac8612ae114f135 /app/controllers
parenta4a81c5434c73139f7c1d66f2687039237c5208a (diff)
parent51411267fda00db576230a270a10e31992378c18 (diff)
Merge pull request #1179 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
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 52cddc404..639002964 100644
--- a/app/controllers/invites_controller.rb
+++ b/app/controllers/invites_controller.rb
@@ -44,7 +44,7 @@ class InvitesController < ApplicationController
   end
 
   def invites
-    Invite.where(user: current_user).order(id: :desc)
+    current_user.invites.order(id: :desc)
   end
 
   def resource_params