graphiti 1.0.alpha.14 → 1.0.alpha.15

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: b5ea1fc71cafab76e9d9978a65d0db8c9e947609
4
- data.tar.gz: f09f4fbb1322c7da9a07c9ba0e96d9906a586b7f
3
+ metadata.gz: 332ebf284725aa85dd8367bb40f6a42d70ed32a5
4
+ data.tar.gz: 800ec82f722e16816354372afd8221f54f0c698e
5
5
  SHA512:
6
- metadata.gz: bf4c9ddbd38979ec78ee272629304cc725a9ab2f634e8864f3cd146b9101a2b704ac55299033360fe92a1153a79e963f199256a2306ff60bd2b418fa50325509
7
- data.tar.gz: c42eb4d69df9c79c9bf54b1fb71bf71c6c531ce687c84fa5967a9bc0e736fb1a2130ad364ffca4aeb9f02da3ed42dd406413db514f97b13a6bfa2b8bfce874b2
6
+ metadata.gz: d22d1f744507b956f90109f40b02bfcd53cc59ff32a938228dc09892790cd50a3bb5695022989608c06ab6ad0886c032504b1fa542c2a04eba4ca8d66a095a1b
7
+ data.tar.gz: a85efcc26424ff6167eac16447b0529fc46b1ab45f6f3f20395f44bbf641afeeb5707a0af87ebdef29a5e488c5304cfd67c50c37def78e8ee243594b5636e639
@@ -214,9 +214,7 @@ module Graphiti
214
214
  [:create, :update].include?(Graphiti.context[:namespace])
215
215
  parent.send(association_name) << child
216
216
  else
217
- target = association.instance_variable_get(:@target)
218
- target |= [child]
219
- association.instance_variable_set(:@target, target)
217
+ association.add_to_target(child, :skip_callbacks)
220
218
  end
221
219
  end
222
220
  else
@@ -1,3 +1,3 @@
1
1
  module Graphiti
2
- VERSION = "1.0.alpha.14"
2
+ VERSION = "1.0.alpha.15"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphiti
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.alpha.14
4
+ version: 1.0.alpha.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lee Richmond