parent
b17b2f25ac
commit
a49d43d112
29 changed files with 437 additions and 103 deletions
11
app/serializers/rest/scheduled_status_serializer.rb
Normal file
11
app/serializers/rest/scheduled_status_serializer.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue