forest_admin_agent 1.0.0.pre.beta.53 → 1.0.0.pre.beta.55
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: 2a6aac9fa2c3c0b12bd8267a6c571abd8d8879f5f023222fc475e811c7224dcf
|
4
|
+
data.tar.gz: c8c2d673bdac6aab94ee466b7da69094ef659587c12e08010123486702f70d62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5194985c34dfd830afdf542b8e9b480e7d44b3ed5a2eaae8eddd70f036905d85d0715208adc04f6244351964b76d0e412fa0fbbb3318f594556660a13ec801bc
|
7
|
+
data.tar.gz: b5633f55be4046efc597450a69ffdf9ca5e9835d6e806dc1578ba734fe3c3cf51c338f78e1f53dbf5971dee512a6d6abd669b07bbaafcc5ee22738bd435c66b2
|
@@ -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]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: forest_admin_agent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.pre.beta.
|
4
|
+
version: 1.0.0.pre.beta.55
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthieu
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-06-
|
12
|
+
date: 2024-06-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|