Order emoji categories (in admin interface) by name (#33630)
This commit is contained in:
parent
3dcf5e12b1
commit
e380e803a8
2 changed files with 3 additions and 1 deletions
|
@ -14,4 +14,6 @@ class CustomEmojiCategory < ApplicationRecord
|
|||
has_many :emojis, class_name: 'CustomEmoji', foreign_key: 'category_id', inverse_of: :category, dependent: nil
|
||||
|
||||
validates :name, presence: true, uniqueness: true
|
||||
|
||||
scope :alphabetic, -> { order(name: :asc) }
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue