forest_admin_agent 1.0.0.pre.beta.53 → 1.0.0.pre.beta.54
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d00ce0b7ec12194e89b3356eeafea21b554920c02eb6e44add1446950cabe9c
|
4
|
+
data.tar.gz: 570008a865ef664bc286370771808897b8b0d04c2326c1b13e68e276d57815f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b1fd6024a979ef4cbcc13812a2543fb44586b59c3af1acb5222bdff6da121d3795c910e9699ac64a5df57e94a1ba213eb2aa05b89612cbf6e191cf46ea29285
|
7
|
+
data.tar.gz: 882468f6dbbc8f8f742d9dce4b94925f507e2f54dee873b1186bae14391c53d2a47707a476fb41259f9d7179b81d346feb227789fb473723ffc6c6f9a4ff4eee
|
@@ -60,7 +60,10 @@ module ForestAdminAgent
|
|
60
60
|
objects.each do |obj|
|
61
61
|
relation = ForestAdminAgent::Facades::Container.datasource.get_collection(options[:class_name]).schema[:fields][attribute_name]
|
62
62
|
relation_class_name = ForestAdminAgent::Facades::Container.datasource.get_collection(relation.foreign_collection).name
|
63
|
-
|
63
|
+
option_relation = options.clone
|
64
|
+
option_relation[:class_name] = relation_class_name
|
65
|
+
obj_serializer = JSONAPI::Serializer.find_serializer(obj, option_relation)
|
66
|
+
|
64
67
|
# Use keys of ['posts', '1'] for the results to enforce uniqueness.
|
65
68
|
# Spec: A compound document MUST NOT include more than one resource object for each
|
66
69
|
# type and id pair.
|
@@ -200,7 +203,6 @@ module ForestAdminAgent
|
|
200
203
|
# of the internal special merging logic.
|
201
204
|
find_recursive_relationships(obj, inclusion_tree, relationship_data, passthrough_options)
|
202
205
|
end
|
203
|
-
|
204
206
|
result['included'] = relationship_data.map do |_, data|
|
205
207
|
included_passthrough_options = {}
|
206
208
|
included_passthrough_options[:base_url] = passthrough_options[:base_url]
|