mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-15 16:59:41 +00:00
10 lines
241 B
Ruby
10 lines
241 B
Ruby
# frozen_string_literal: true
|
|
|
|
class REST::CollectionItemSerializer < ActiveModel::Serializer
|
|
delegate :accepted?, to: :object
|
|
|
|
attributes :position, :state
|
|
|
|
belongs_to :account, serializer: REST::AccountSerializer, if: :accepted?
|
|
end
|