Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2016-06-06 17:41:33 +0300
committerAlfredo Sumaran <alfredo@gitlab.com>2016-06-06 19:59:49 +0300
commitbf193eb78bd7022b58d6ceebd928f2b140205f65 (patch)
tree092977549e1df95ff847676748e5e8aa47a707a6 /app/models/label.rb
parent77f30af0179164fe3e893df616eb60beb8a1d9fe (diff)
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