metamaps--metamaps/app/serializers/api/v2/topic_serializer.rb
2018-02-05 21:39:30 -08:00

27 lines
481 B
Ruby

# frozen_string_literal: true
module Api
module V2
class TopicSerializer < ApplicationSerializer
attributes :id,
:name,
:desc,
:link,
:permission,
:created_at,
:updated_at
def self.embeddable
{
user: {},
metacode: {},
attachments: {}
}
end
class_eval do
embed_dat
end
end
end
end