metamaps--metamaps/app/serializers/api/v2/topic_serializer.rb

28 lines
481 B
Ruby
Raw Normal View History

2016-09-24 03:00:46 +00:00
# frozen_string_literal: true
2017-11-25 19:23:47 +00:00
module Api
module V2
class TopicSerializer < ApplicationSerializer
attributes :id,
2016-09-24 03:00:46 +00:00
:name,
:desc,
:link,
:permission,
:created_at,
:updated_at
def self.embeddable
{
user: {},
metacode: {},
attachments: {}
}
end
2016-09-24 03:00:46 +00:00
class_eval do
embed_dat
end
end
end
end