jsonapi_compliable 0.11.10 → 0.11.11

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
  SHA1:
3
- metadata.gz: c65b22ee08192e29950054add88f472e77132860
4
- data.tar.gz: e675a96ad08246f8264df2ac265ffeab5e648af1
3
+ metadata.gz: 87c1614d2e8e0d154e7b6fc72dc1e265d483b188
4
+ data.tar.gz: a2b71589de0e023f98464f9ca85dfdd18187366b
5
5
  SHA512:
6
- metadata.gz: e912049b53c80808cb5cb54203e86c7594625b18adf8a5d5103663654374f1e2145c66d03d5b7ceb7572929285cdc15578a0b3dc5aaee8a22c7036a48d04c5a3
7
- data.tar.gz: c9aa189b04542dbfa114f19d91741c2ecf986b87c1ffedc0865c127c2add5bd59942addbfe0e21a749a69a2bc2ebca7763fd8a5608bd4898a52ae4bca5d43340
6
+ metadata.gz: 87738721fc6c3b2b2ce6c4805a8e531b82fb6f9fdadf35352d814a885300bab28df5d166c0781ceb4de7c6d051fad29a0326d5d23a974574ffb33d75ed79b072
7
+ data.tar.gz: 1fd0b2e0e7cccd04004332c187e348790463b0603cc6d611d652653b16434ef488702be1830a5cf906661678d581886195ba5ae1050577ebc568ae318f34a984
@@ -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.association(association_name).replace(relevant_child, false)
61
+ parent.send(:"#{association_name}=", relevant_child)
62
62
  end
63
63
  end
64
64
 
@@ -1,3 +1,3 @@
1
1
  module JsonapiCompliable
2
- VERSION = "0.11.10"
2
+ VERSION = "0.11.11"
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.10
4
+ version: 0.11.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lee Richmond
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2018-05-12 00:00:00.000000000 Z
12
+ date: 2018-05-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jsonapi-serializable