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

  attributes :id, :name
  has_many :switchboard_entries, :key => :switchboard_entry_ids, :root => :switchboardEntrys
end