25 lines
374 B
Ruby
25 lines
374 B
Ruby
|
module Api
|
||
|
module V2
|
||
|
class TopicSerializer < ApplicationSerializer
|
||
|
attributes :id,
|
||
|
:name,
|
||
|
:desc,
|
||
|
:link,
|
||
|
:permission,
|
||
|
:created_at,
|
||
|
:updated_at
|
||
|
|
||
|
def self.embeddable
|
||
|
{
|
||
|
user: {},
|
||
|
metacode: {}
|
||
|
}
|
||
|
end
|
||
|
|
||
|
self.class_eval do
|
||
|
embed_dat
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|