summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG1
-rw-r--r--app/controllers/admin/runners_controller.rb2
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG b/CHANGELOG
index dfef914..09c745a 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -6,6 +6,7 @@ v7.10.0
- Events per projects
- Search for runners in admin area
- UI improvements: created separated admin section, removed useless project show page
+ - Runners sorting in admin area (by id)
v7.9.3
- Contains no changes
diff --git a/app/controllers/admin/runners_controller.rb b/app/controllers/admin/runners_controller.rb
index fd1b6b2..2d530c1 100644
--- a/app/controllers/admin/runners_controller.rb
+++ b/app/controllers/admin/runners_controller.rb
@@ -2,7 +2,7 @@ class Admin::RunnersController < Admin::ApplicationController
before_filter :runner, except: :index
def index
- @runners = Runner.all
+ @runners = Runner.order('id DESC')
@runners = @runners.search(params[:search]) if params[:search].present?
@runners = @runners.page(params[:page]).per(30)
end