This commit is contained in:
Alfredo Sumaran 2016-06-02 18:42:13 -05:00
parent d4bcf51692
commit 4ac907ee77
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ class Label < ActiveRecord::Base
scope :templates, -> { where(template: true) }
def self.prioritized
where.not(priority: nil).reorder(Gitlab::Database.nulls_last_order(:priority), :title)
where.not(priority: nil).reorder(Gitlab::Database.nulls_last_order(:priority), :title)
end
def self.unprioritized