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.

14 lines
344 B

  1. # frozen_string_literal: true
  2. class REST::MuteSerializer < ActiveModel::Serializer
  3. include RoutingHelper
  4. attributes :id, :account, :target_account, :created_at, :hide_notifications
  5. def account
  6. REST::AccountSerializer.new(object.account)
  7. end
  8. def target_account
  9. REST::AccountSerializer.new(object.target_account)
  10. end
  11. end