FIX: order child themes by name

This commit is contained in:
Sam 2017-04-13 10:51:44 -04:00
parent e61be7af13
commit 679b6548e6

View File

@ -39,4 +39,8 @@ class ThemeSerializer < ChildThemeSerializer
has_many :theme_fields, serializer: ThemeFieldSerializer, embed: :objects has_many :theme_fields, serializer: ThemeFieldSerializer, embed: :objects
has_many :child_themes, serializer: ChildThemeSerializer, embed: :objects has_many :child_themes, serializer: ChildThemeSerializer, embed: :objects
has_one :remote_theme, serializer: RemoteThemeSerializer, embed: :objects has_one :remote_theme, serializer: RemoteThemeSerializer, embed: :objects
def child_themes
object.child_themes.order(:name)
end
end end