specify order in the Rails 3 way

ascending is the default anyway
pull/3204/head
Jan Sandbrink 9 years ago committed by Florian Kraft
parent 9cb9957bbb
commit 253785622c
  1. 2
      app/controllers/work_packages/auto_completes_controller.rb

@ -50,7 +50,7 @@ class WorkPackages::AutoCompletesController < ApplicationController
@work_packages |= scope.visible
.where(sql_query)
.order(id: :asc)
.order(:id)
.limit(10)
respond_to do |format|

Loading…
Cancel
Save