discourse/app/serializers/queued_post_serializer.rb

18 lines
413 B
Ruby
Raw Normal View History

2015-04-10 17:00:50 -04:00
class QueuedPostSerializer < ApplicationSerializer
2015-04-10 17:00:50 -04:00
attributes :id,
:queue,
:user_id,
:state,
:topic_id,
:approved_by_id,
:rejected_by_id,
:raw,
:post_options,
:created_at
has_one :user, serializer: BasicUserSerializer, embed: :object
has_one :topic, serializer: BasicTopicSerializer
2015-04-10 17:00:50 -04:00
end