diff options
author | Sean McGivern <sean@gitlab.com> | 2016-06-06 17:41:33 +0300 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2016-06-06 19:59:49 +0300 |
commit | bf193eb78bd7022b58d6ceebd928f2b140205f65 (patch) | |
tree | 092977549e1df95ff847676748e5e8aa47a707a6 | |
parent | 77f30af0179164fe3e893df616eb60beb8a1d9fe (diff) |
Remove unnecessary null-specific order
-rw-r--r-- | app/models/label.rb | 4 |
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 |