summaryrefslogtreecommitdiff
path: root/app/models/label.rb
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2016-06-06 15:41:33 +0100
committerAlfredo Sumaran <alfredo@gitlab.com>2016-06-06 11:59:49 -0500
commitbf193eb78bd7022b58d6ceebd928f2b140205f65 (patch)
tree092977549e1df95ff847676748e5e8aa47a707a6 /app/models/label.rb
parent77f30af0179164fe3e893df616eb60beb8a1d9fe (diff)
downloadgitlab-ce-bf193eb78bd7022b58d6ceebd928f2b140205f65.tar.gz
Remove unnecessary null-specific order
Diffstat (limited to 'app/models/label.rb')
-rw-r--r--app/models/label.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/label.rb b/app/models/label.rb
index aed74d0bde1..9760f1aefa9 100644
--- a/app/models/label.rb
+++ b/app/models/label.rb
@@ -33,11 +33,11 @@ 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(:title)
end
def self.unprioritized
- where(priority: nil).reorder(Gitlab::Database.nulls_last_order(:priority), :title)
+ where(priority: nil).reorder(:title)
end
alias_attribute :name, :title