summaryrefslogtreecommitdiff
path: root/app/controllers/ci/runners_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/ci/runners_controller.rb')
-rw-r--r--app/controllers/ci/runners_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/ci/runners_controller.rb b/app/controllers/ci/runners_controller.rb
index 01eebf7e6a7..0ef32ce928f 100644
--- a/app/controllers/ci/runners_controller.rb
+++ b/app/controllers/ci/runners_controller.rb
@@ -11,7 +11,7 @@ module Ci
def index
@runners = @project.runners.order('id DESC')
@specific_runners = current_user.authorized_runners.
- where.not(id: @runners).order('runners.id DESC').page(params[:page]).per(20)
+ where.not(id: @runners).order("#{Ci::Runner.table_name}.id DESC").page(params[:page]).per(20)
@shared_runners = Ci::Runner.shared.active
@shared_runners_count = @shared_runners.count(:all)
end