diff options
Diffstat (limited to 'app/models/work_items')
-rw-r--r-- | app/models/work_items/type.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/work_items/type.rb b/app/models/work_items/type.rb index 080513b28e9..e2d38dc9903 100644 --- a/app/models/work_items/type.rb +++ b/app/models/work_items/type.rb @@ -37,7 +37,7 @@ module WorkItems validates :icon_name, length: { maximum: 255 } scope :default, -> { where(namespace: nil) } - scope :order_by_name_asc, -> { order('LOWER(name)') } + scope :order_by_name_asc, -> { order(arel_table[:name].lower.asc) } scope :by_type, ->(base_type) { where(base_type: base_type) } def self.default_by_type(type) |