diff options
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/character_item.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/character_item.rb b/app/models/character_item.rb index 6ee13ab..5bc27c9 100644 --- a/app/models/character_item.rb +++ b/app/models/character_item.rb @@ -11,5 +11,5 @@ class CharacterItem < ApplicationRecord end end - scope :ordered_by_item_name, -> { includes(:item).order("items.name") } + scope :ordered_by_item_name, -> { includes(:item).order("LOWER(items.name)").references(:items) } end |