mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 21:57:36 +08:00
FIX: order child themes by name
This commit is contained in:
parent
e61be7af13
commit
679b6548e6
|
@ -39,4 +39,8 @@ class ThemeSerializer < ChildThemeSerializer
|
|||
has_many :theme_fields, serializer: ThemeFieldSerializer, embed: :objects
|
||||
has_many :child_themes, serializer: ChildThemeSerializer, embed: :objects
|
||||
has_one :remote_theme, serializer: RemoteThemeSerializer, embed: :objects
|
||||
|
||||
def child_themes
|
||||
object.child_themes.order(:name)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user