fix docs
This commit is contained in:
parent
779f0a699c
commit
c944ba628b
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue