discourse/app/serializers/about_serializer.rb

12 lines
327 B
Ruby
Raw Normal View History

2014-08-12 04:59:00 +08:00
class AboutSerializer < ApplicationSerializer
has_many :moderators, serializer: BasicUserSerializer, embed: :objects
has_many :admins, serializer: BasicUserSerializer, embed: :objects
2014-08-12 06:15:35 +08:00
attributes :stats,
:description,
:title,
:locale,
:version,
:https
2014-08-12 04:59:00 +08:00
end