diff options
Diffstat (limited to 'app/serializers/switchboard_serializer.rb')
-rw-r--r-- | app/serializers/switchboard_serializer.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/serializers/switchboard_serializer.rb b/app/serializers/switchboard_serializer.rb new file mode 100644 index 0000000..600c79a --- /dev/null +++ b/app/serializers/switchboard_serializer.rb @@ -0,0 +1,8 @@ +class SwitchboardSerializer < ActiveModel::Serializer + embed :ids, :include => true + + attributes :id, :name + has_many :switchboard_entries + has_many :sip_accounts, :through => :switchboard_entries + has_many :phone_numbers +end |