summaryrefslogtreecommitdiff
path: root/app/serializers/switchboard_serializer.rb
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-03-25 10:26:49 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-04-03 22:09:33 +0200
commit877364c24ef9c7954f0e193456bb3f2d39169977 (patch)
tree67ccc220fc9a98300356855f0c9e3b6f13d37223 /app/serializers/switchboard_serializer.rb
parent595e5f9d32c9dda8f7b6c0dd5e7e4fba4693eca4 (diff)
First try
Diffstat (limited to 'app/serializers/switchboard_serializer.rb')
-rw-r--r--app/serializers/switchboard_serializer.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/serializers/switchboard_serializer.rb b/app/serializers/switchboard_serializer.rb
new file mode 100644
index 0000000..c460add
--- /dev/null
+++ b/app/serializers/switchboard_serializer.rb
@@ -0,0 +1,6 @@
+class SwitchboardSerializer < ActiveModel::Serializer
+ embed :ids, :include => true
+
+ attributes :id, :name
+ has_many :switchboard_entries, :key => :switchboard_entry_ids, :root => :switchboardEntrys
+end