summaryrefslogtreecommitdiff
path: root/app/serializers/switchboard_serializer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/serializers/switchboard_serializer.rb')
-rw-r--r--app/serializers/switchboard_serializer.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/serializers/switchboard_serializer.rb b/app/serializers/switchboard_serializer.rb
index c460add..2912a56 100644
--- a/app/serializers/switchboard_serializer.rb
+++ b/app/serializers/switchboard_serializer.rb
@@ -1,6 +1,7 @@
class SwitchboardSerializer < ActiveModel::Serializer
- embed :ids, :include => true
-
attributes :id, :name
- has_many :switchboard_entries, :key => :switchboard_entry_ids, :root => :switchboardEntrys
+
+ embed :ids
+
+ has_many :switchboard_entries, :key => :switchboard_entrys
end