mirror of
https://github.com/mastodon/mastodon.git
synced 2026-04-26 01:43:00 -05:00
13 lines
345 B
Ruby
13 lines
345 B
Ruby
# frozen_string_literal: true
|
|
|
|
class REST::BaseCollectionSerializer < ActiveModel::Serializer
|
|
attributes :id, :uri, :name, :description, :language, :local, :sensitive,
|
|
:discoverable, :item_count, :created_at, :updated_at
|
|
|
|
belongs_to :tag, serializer: REST::StatusSerializer::TagSerializer
|
|
|
|
def id
|
|
object.id.to_s
|
|
end
|
|
end
|