jsonapi_compliable 0.11.11 → 0.11.12

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
  SHA1:
3
- metadata.gz: 87c1614d2e8e0d154e7b6fc72dc1e265d483b188
4
- data.tar.gz: a2b71589de0e023f98464f9ca85dfdd18187366b
3
+ metadata.gz: d33c0d838c08ea3a6103db126481104d984aa56f
4
+ data.tar.gz: a0e5fe1ab207f0d443e4060c4e1670f7b1f23569
5
5
  SHA512:
6
- metadata.gz: 87738721fc6c3b2b2ce6c4805a8e531b82fb6f9fdadf35352d814a885300bab28df5d166c0781ceb4de7c6d051fad29a0326d5d23a974574ffb33d75ed79b072
7
- data.tar.gz: 1fd0b2e0e7cccd04004332c187e348790463b0603cc6d611d652653b16434ef488702be1830a5cf906661678d581886195ba5ae1050577ebc568ae318f34a984
6
+ metadata.gz: d2ffa161e3b63d1372c652046c10ccedc488d1c541cfa11a12ae0da5d0d00f55c907d5c4c6565529fa6aeb394604a68ccf194f9fef3d9baeb1a0dcacaf154762
7
+ data.tar.gz: c055b652a012e653a719d33f44ce23f37e2c1a6a45a4323c4ad72176054f58ebfe853196fd2f8cfd046e0679dcf4777c73b4ceb586ee0057ed7c5da06d56f0dc
@@ -58,7 +58,7 @@ module JsonapiCompliable
58
58
  parent.association(association_name).loaded!
59
59
  relevant_child = children.find { |c| c.send(foreign_key) == parent.send(primary_key) }
60
60
  next unless relevant_child
61
- parent.send(:"#{association_name}=", relevant_child)
61
+ parent.association(association_name).replace(relevant_child, false)
62
62
  end
63
63
  end
64
64
 
@@ -1,3 +1,3 @@
1
1
  module JsonapiCompliable
2
- VERSION = "0.11.11"
2
+ VERSION = "0.11.12"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsonapi_compliable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.11
4
+ version: 0.11.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lee Richmond