forest_liana 9.15.3 → 9.15.4

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: 6c293cc19d5273766a98fcc556bb07bcdd9dea63cd604aeee9352055556b9994
4
- data.tar.gz: fe841959936a030dc0989da2645ce9db9a74237bf86d7028c2cc4c7de27fece8
3
+ metadata.gz: 01b3a5629878eddd5cfdeea4bcb0fadcdd46c5211ac3bf327d8cda5cc6ecb068
4
+ data.tar.gz: a05b24374ac64efca265824dcd69167c690b1a7bff67fbafc06ab9d497fa2531
5
5
  SHA512:
6
- metadata.gz: b4ab70690f0da9891d2e5484ad33548e443bf5d72cf0edbc24caae74fe6214a2e3d9f10489ebdb331b907809a6d19cd2cfdd1631c80ed5c0aff4156a5e666326
7
- data.tar.gz: bb3272e7f6ae11f3538f15ac0cb280df67015ac940d1734d8cc5d04f9ad1168b1e09ad9073e3b85cfef0c936d7393db70a90973e14a34d0e367584e46f3a4311
6
+ metadata.gz: 89fcfaf157e5cc76277e85eba8ad01ba92450e8f9081a8602881ae5d7b20bdd23e11b0029ad144000b7b886f081d2f5f0a7444084990df1678a44d471dd94fd8
7
+ data.tar.gz: b02ae1262881d03d225f7795e92e26764a738343ba8880b36ed13d44521a3d09686db209dda8a4ecfa260afe3990859ee2eff348892f74891d7e60b11791fcd1
@@ -40,6 +40,8 @@ module ForestLiana
40
40
 
41
41
  def serialize_model(record, options = {})
42
42
  options[:is_collection] = false
43
+ options[:context] = { unoptimized: true }.merge(options[:context] || {})
44
+
43
45
  json = ForestAdmin::JSONAPI::Serializer.serialize(record, options)
44
46
 
45
47
  force_utf8_encoding(json)
@@ -178,7 +180,7 @@ module ForestLiana
178
180
  else
179
181
  smart_relations.each do |smart_relation|
180
182
  if smart_relation[:field].to_s == relation_name
181
- fields[smart_relation[:reference].split('.').first] = relation_fields
183
+ fields[relation_name] = relation_fields
182
184
  end
183
185
  end
184
186
  end
@@ -1,3 +1,3 @@
1
1
  module ForestLiana
2
- VERSION = "9.15.3"
2
+ VERSION = "9.15.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forest_liana
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.15.3
4
+ version: 9.15.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sandro Munda
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-08-08 00:00:00.000000000 Z
11
+ date: 2025-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails