Add scheduled statuses (#9706)

Fix #340
This commit is contained in:
Eugen Rochko
2019-01-05 12:43:28 +01:00
committed by GitHub
parent b17b2f25ac
commit a49d43d112
29 changed files with 437 additions and 103 deletions

View File

@ -0,0 +1,11 @@
# frozen_string_literal: true
class REST::ScheduledStatusSerializer < ActiveModel::Serializer
attributes :id, :scheduled_at
has_many :media_attachments, serializer: REST::MediaAttachmentSerializer
def id
object.id.to_s
end
end