forest_admin_agent 1.0.0.pre.beta.53 → 1.0.0.pre.beta.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 58f20bfe5d2243e06eb35a20c5ec51e6610d81d92272f782eaace19112314a21
4
- data.tar.gz: 85cfe4e3217e0ca0a444ab642dc9d369a6a5843b7ca947ecd4ff86e9b0aca5dd
3
+ metadata.gz: 6d00ce0b7ec12194e89b3356eeafea21b554920c02eb6e44add1446950cabe9c
4
+ data.tar.gz: 570008a865ef664bc286370771808897b8b0d04c2326c1b13e68e276d57815f5
5
5
  SHA512:
6
- metadata.gz: 7ca98b9bfcc25c40c15c822b745bbe571ece3499bfc2b68c4ecb682fecfb66e0ef3a525613dcf30ebae432cbf0e9e199891524f3d6df19a92ccdc121203da919
7
- data.tar.gz: 6f11399dc1a82b75b15e79962704ec54b3e0c33bad6eab51285cd22f3a871de89b625af88a6e2e5b458c7fb999a98c3f266fb1b1bea84972072f963b1f6244c8
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
- obj_serializer = JSONAPI::Serializer.find_serializer(obj, options)
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]
@@ -7,7 +7,7 @@ module ForestAdminAgent
7
7
  class SchemaEmitter
8
8
  LIANA_NAME = "forest-rails"
9
9
 
10
- LIANA_VERSION = "1.0.0-beta.53"
10
+ LIANA_VERSION = "1.0.0-beta.54"
11
11
 
12
12
  def self.get_serialized_schema(datasource)
13
13
  schema_path = Facades::Container.cache(:schema_path)
@@ -1,3 +1,3 @@
1
1
  module ForestAdminAgent
2
- VERSION = "1.0.0-beta.53"
2
+ VERSION = "1.0.0-beta.54"
3
3
  end
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.53
4
+ version: 1.0.0.pre.beta.54
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthieu