mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 01:56:01 -05:00
16 lines
270 B
Ruby
16 lines
270 B
Ruby
|
class GroupPostSerializer < ApplicationSerializer
|
||
|
attributes :id,
|
||
|
:cooked,
|
||
|
:created_at,
|
||
|
:title,
|
||
|
:url
|
||
|
|
||
|
has_one :user, serializer: BasicUserSerializer, embed: :objects
|
||
|
|
||
|
def title
|
||
|
object.topic.title
|
||
|
end
|
||
|
|
||
|
end
|
||
|
|