summaryrefslogtreecommitdiff
path: root/app/serializers/sip_account_serializer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/serializers/sip_account_serializer.rb')
-rw-r--r--app/serializers/sip_account_serializer.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/serializers/sip_account_serializer.rb b/app/serializers/sip_account_serializer.rb
new file mode 100644
index 0000000..aa749b0
--- /dev/null
+++ b/app/serializers/sip_account_serializer.rb
@@ -0,0 +1,7 @@
+class SipAccountSerializer < ActiveModel::Serializer
+ embed :ids, :include => true
+
+ attributes :id, :auth_name, :caller_name, :sip_accountable_id
+ has_many :phone_numbers
+ has_many :calls
+end