about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-05-22 14:44:53 +0200
committerGitHub <noreply@github.com>2018-05-22 14:44:53 +0200
commit36e47a31e33a86c401c2aaf1f9788ca0c91bdec0 (patch)
tree3042a3c0de811217b239c90ad1b4a7ab5c1c8c49 /app
parent4eeda6772796bcd08b8c63ec2e1f3e68a95cbca4 (diff)
Enforce order on authorized applications page (#7587)
Fix #7586
Diffstat (limited to 'app')
-rw-r--r--app/controllers/settings/applications_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/settings/applications_controller.rb b/app/controllers/settings/applications_controller.rb
index 8fc9a0fa9..2a4962311 100644
--- a/app/controllers/settings/applications_controller.rb
+++ b/app/controllers/settings/applications_controller.rb
@@ -8,7 +8,7 @@ class Settings::ApplicationsController < ApplicationController
   before_action :prepare_scopes, only: [:create, :update]
 
   def index
-    @applications = current_user.applications.page(params[:page])
+    @applications = current_user.applications.order(id: :desc).page(params[:page])
   end
 
   def new