forest_liana 9.4.2 → 9.4.3

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: 30304717828c9052079569a8d955913fb634760dded796df1135fe826831e62b
4
- data.tar.gz: 57ce0d28c56e813ea44eab5a8ac7f98e50bc4733b43fd48a2fa3828f4eabe65e
3
+ metadata.gz: 4a1cf11328ad544ae68cd6f0f4b395f56cb19736b77e09ed1bf5cbabbd6bc756
4
+ data.tar.gz: 3a3e814367ac7580db4e3846a0a9fd5f9ac16ecb518420d216817a1a281b01ef
5
5
  SHA512:
6
- metadata.gz: abe0a8db51a9015fa7f73ed62b815c5f7e282cb720169395358d9055c05bd36320268c65951504873bb1767630d5ebf5266725a67563b350f43fe014555f90d8
7
- data.tar.gz: d2969b08d6810fa39985663f879099b224c41c65d7282cbb0b81813c205b5857c6400c82e744d55eb2d55f0e882670eeb2435e5eb649790498bc25fe984b743f
6
+ metadata.gz: ed8f8760b8de16b5b22d13feff78978e5860d0f95f6f05f81e5178c0e11ae022a4353e84f13e102ca72d81d65592ebaa91e979af677d9be9d055aebefc60887e
7
+ data.tar.gz: 655dd881cbd6c03ec4322fb544acd06dd00e8680e72e2820d7048aec3acda0d7bd5ef4362785e151398a8a2d2f5be26b3eb02d4f1b031887754c6399f4d40dd4
@@ -166,7 +166,17 @@ module ForestLiana
166
166
  def self.related_data_params(attributes, user)
167
167
  parent_model = SchemaUtils.find_model_from_collection_name(attributes[:parent_collection_name])
168
168
  model = parent_model.reflect_on_association(attributes[:parent_association_name].to_sym)
169
- [parent_model, model, attributes.merge(collection: attributes[:parent_collection_name]), user]
169
+
170
+ [
171
+ parent_model,
172
+ model,
173
+ attributes.merge(
174
+ collection: attributes[:parent_collection_name],
175
+ id: attributes[:parent_collection_id],
176
+ association_name: attributes[:parent_association_name]
177
+ ),
178
+ user
179
+ ]
170
180
  end
171
181
 
172
182
  def self.fetch_ids(resources_getter)
@@ -1,3 +1,3 @@
1
1
  module ForestLiana
2
- VERSION = "9.4.2"
2
+ VERSION = "9.4.3"
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.4.2
4
+ version: 9.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sandro Munda
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-30 00:00:00.000000000 Z
11
+ date: 2024-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails