diff options
author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-06-04 15:06:50 +0200 |
---|---|---|
committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-06-04 15:06:50 +0200 |
commit | 87cf6e55f76901c340ec99cf216637a2b9672cc2 (patch) | |
tree | 8f500293a84151d177a64e3ca892eb13cd20b8f4 /app/serializers | |
parent | 26456e2298376ceb5bc3d7978d7c0aa146e44039 (diff) |
JSON API for PagerGroup (new)
Diffstat (limited to 'app/serializers')
-rw-r--r-- | app/serializers/pager_group_destination_serializer.rb | 3 | ||||
-rw-r--r-- | app/serializers/pager_group_serializer.rb | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/app/serializers/pager_group_destination_serializer.rb b/app/serializers/pager_group_destination_serializer.rb new file mode 100644 index 0000000..6b14884 --- /dev/null +++ b/app/serializers/pager_group_destination_serializer.rb @@ -0,0 +1,3 @@ +class PagerGroupDestinationSerializer < ActiveModel::Serializer + embed :ids, :include => true +end diff --git a/app/serializers/pager_group_serializer.rb b/app/serializers/pager_group_serializer.rb new file mode 100644 index 0000000..ca748d9 --- /dev/null +++ b/app/serializers/pager_group_serializer.rb @@ -0,0 +1,7 @@ +class PagerGroupSerializer < ActiveModel::Serializer + embed :ids, :include => true + + attributes :id, :sip_account_id, :callback_url + + has_many :pager_group_destinations +end |