summaryrefslogtreecommitdiff
path: root/app/serializers/switchboard_serializer.rb
blob: 600c79ad851f4be5e08ea32a0ef260cb0bb5928d (plain)
1
2
3
4
5
6
7
8
class SwitchboardSerializer < ActiveModel::Serializer
  embed :ids, :include => true

  attributes :id, :name
  has_many :switchboard_entries
  has_many :sip_accounts, :through => :switchboard_entries
  has_many :phone_numbers
end