You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
314 B

  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