1 2 3 4 5
class SwitchboardEntrySerializer < ActiveModel::Serializer attributes :id, :name has_many :phone_numbers, embed: :ids end