1
0

scheduled_status_serializer.rb 314 B

123456789101112131415
  1. # frozen_string_literal: true
  2. class REST::ScheduledStatusSerializer < ActiveModel::Serializer
  3. attributes :id, :scheduled_at, :params
  4. has_many :media_attachments, serializer: REST::MediaAttachmentSerializer
  5. def id
  6. object.id.to_s
  7. end
  8. def params
  9. object.params.without(:application_id)
  10. end
  11. end