diff options
author | Peter Kozak <spag@golwen.net> | 2013-05-24 16:45:28 +0200 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-05-24 16:45:28 +0200 |
commit | d323e95480e675c01c1c5c9fdfb25083c448de7f (patch) | |
tree | aa85ccccccf44a5ab2304dfe385bfef58db6447d /app/serializers | |
parent | ffd1deac7e54df6892a1d6393dda1919b571c919 (diff) |
switchboard calls
Diffstat (limited to 'app/serializers')
-rw-r--r-- | app/serializers/sip_account_serializer.rb | 1 | ||||
-rw-r--r-- | app/serializers/switchboard_serializer.rb | 1 |
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 |