summaryrefslogtreecommitdiff
path: root/app/serializers
diff options
context:
space:
mode:
Diffstat (limited to 'app/serializers')
-rw-r--r--app/serializers/sip_account_serializer.rb1
-rw-r--r--app/serializers/switchboard_serializer.rb1
2 files changed, 2 insertions, 0 deletions
diff --git a/app/serializers/sip_account_serializer.rb b/app/serializers/sip_account_serializer.rb
index c85c8a0..aa749b0 100644
--- a/app/serializers/sip_account_serializer.rb
+++ b/app/serializers/sip_account_serializer.rb
@@ -3,4 +3,5 @@ class SipAccountSerializer < ActiveModel::Serializer
attributes :id, :auth_name, :caller_name, :sip_accountable_id
has_many :phone_numbers
+ has_many :calls
end
diff --git a/app/serializers/switchboard_serializer.rb b/app/serializers/switchboard_serializer.rb
index 600c79a..6d39667 100644
--- a/app/serializers/switchboard_serializer.rb
+++ b/app/serializers/switchboard_serializer.rb
@@ -5,4 +5,5 @@ class SwitchboardSerializer < ActiveModel::Serializer
has_many :switchboard_entries
has_many :sip_accounts, :through => :switchboard_entries
has_many :phone_numbers
+ has_many :active_calls
end