graphiti 1.2.40 → 1.2.41
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/graphiti/adapters/active_record.rb +2 -1
- data/lib/graphiti/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71f32a89c9442ab11825e9fef78897d0b3a6b3b91e4cca1c714b074c6cb009b6
|
4
|
+
data.tar.gz: faeaaab30063200334a6e8f9d0203a4b7274d5dba2918a7ae8143e4e234cf58c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5b9868ae015f0e881940bada465fc62bf859b61921a4e2c78c7dad8f86be8ef8cb7c6826d02b5e94ad2c3d36a4c9b73c7d0b5c5a1c31cf231e8becd62da202f
|
7
|
+
data.tar.gz: 9f027306154a0fc833459182c14386424fcedbf196f53784c203ad0f42fb76190b890c7f7782e092d64da0cc05751a70de6eaa085543ab73dc70d55fea363c4a
|
@@ -240,7 +240,8 @@ module Graphiti
|
|
240
240
|
children.each do |child|
|
241
241
|
if association_type == :many_to_many &&
|
242
242
|
[:create, :update].include?(Graphiti.context[:namespace]) &&
|
243
|
-
!parent.send(association_name).exists?(child.id)
|
243
|
+
!parent.send(association_name).exists?(child.id) &&
|
244
|
+
child.errors.blank?
|
244
245
|
parent.send(association_name) << child
|
245
246
|
else
|
246
247
|
target = association.instance_variable_get(:@target)
|
data/lib/graphiti/version.rb
CHANGED
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.2.
|
4
|
+
version: 1.2.41
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lee Richmond
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-04-
|
11
|
+
date: 2021-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jsonapi-serializable
|