This commit is contained in:
Devin Howard 2017-03-08 22:29:22 -08:00
parent 779f0a699c
commit c944ba628b

View file

@ -19,9 +19,12 @@ module Api
# }, # },
# collaborators: { # collaborators: {
# serializer: UserSerializer # serializer: UserSerializer
# } # },
# topic: {},
# synapses: {}
# } # }
# The key has to be in embeddable, and the serializer is only needed if the key doesn't match a serializer # The key has to be in embeddable or it won't show in the response, and the serializer is
# only needed if the key doesn't match a serializer
def self.embed_dat def self.embed_dat
embeddable.each_pair do |key, opts| embeddable.each_pair do |key, opts|
is_plural = key.to_s.pluralize == key.to_s is_plural = key.to_s.pluralize == key.to_s