about summary refs log tree commit diff
path: root/app/serializers/rest/familiar_followers_serializer.rb
blob: 0a7e923f8005a8ce13560c946400f8ccb01d3149 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

class REST::FamiliarFollowersSerializer < ActiveModel::Serializer
  attribute :id

  has_many :accounts, serializer: REST::AccountSerializer

  def id
    object.id.to_s
  end
end