diff options
author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-03-26 16:55:08 +0100 |
---|---|---|
committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-04-03 22:09:33 +0200 |
commit | 64653a9149eca977c16233abb0a472730b94a464 (patch) | |
tree | 7cfd94c7a7cd44374cf88c61f0f7bd926c351615 /app/serializers/switchboard_serializer.rb | |
parent | 877364c24ef9c7954f0e193456bb3f2d39169977 (diff) |
Store reload interval in the Switchboard table.
Diffstat (limited to 'app/serializers/switchboard_serializer.rb')
-rw-r--r-- | app/serializers/switchboard_serializer.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/serializers/switchboard_serializer.rb b/app/serializers/switchboard_serializer.rb index c460add..2912a56 100644 --- a/app/serializers/switchboard_serializer.rb +++ b/app/serializers/switchboard_serializer.rb @@ -1,6 +1,7 @@ class SwitchboardSerializer < ActiveModel::Serializer - embed :ids, :include => true - attributes :id, :name - has_many :switchboard_entries, :key => :switchboard_entry_ids, :root => :switchboardEntrys + + embed :ids + + has_many :switchboard_entries, :key => :switchboard_entrys end |