graphiti 1.0.alpha.15 → 1.0.alpha.16

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: 332ebf284725aa85dd8367bb40f6a42d70ed32a5
4
- data.tar.gz: 800ec82f722e16816354372afd8221f54f0c698e
3
+ metadata.gz: d7cd1da91838a35ea701970bfa74cc01fa22d2b5
4
+ data.tar.gz: 85c8af417325e68d85feac64c0d026fac4d838f4
5
5
  SHA512:
6
- metadata.gz: d22d1f744507b956f90109f40b02bfcd53cc59ff32a938228dc09892790cd50a3bb5695022989608c06ab6ad0886c032504b1fa542c2a04eba4ca8d66a095a1b
7
- data.tar.gz: a85efcc26424ff6167eac16447b0529fc46b1ab45f6f3f20395f44bbf641afeeb5707a0af87ebdef29a5e488c5304cfd67c50c37def78e8ee243594b5636e639
6
+ metadata.gz: 57bb072978dfbd7acdcb4e52bd24141a780608351dabb2b80365604bbe25ffec7f4777ca0061e08b0d048744a1c231e4f9ab5afd102702d6fb1fa9c8ebbfae81
7
+ data.tar.gz: d8274209d83c00f0386c37029df7b836ad40351b4fec1852c849f33783f251427186aa4b1cc42da264399bc4eeb881b76ff7573145751fff5e180b6583221145
@@ -214,7 +214,9 @@ module Graphiti
214
214
  [:create, :update].include?(Graphiti.context[:namespace])
215
215
  parent.send(association_name) << child
216
216
  else
217
- association.add_to_target(child, :skip_callbacks)
217
+ target = association.instance_variable_get(:@target)
218
+ target |= [child]
219
+ association.instance_variable_set(:@target, target)
218
220
  end
219
221
  end
220
222
  else
@@ -1,3 +1,3 @@
1
1
  module Graphiti
2
- VERSION = "1.0.alpha.15"
2
+ VERSION = "1.0.alpha.16"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphiti
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.alpha.15
4
+ version: 1.0.alpha.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lee Richmond
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-08-29 00:00:00.000000000 Z
11
+ date: 2018-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jsonapi-serializable