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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d10b110934848ed53d75bb0b8595f73c50524833818d39dc53f3859c393d342b
4
- data.tar.gz: a28ab64e8453486628ee93d131914479c24d60ade77e8dd201030bbe68dd055c
3
+ metadata.gz: 71f32a89c9442ab11825e9fef78897d0b3a6b3b91e4cca1c714b074c6cb009b6
4
+ data.tar.gz: faeaaab30063200334a6e8f9d0203a4b7274d5dba2918a7ae8143e4e234cf58c
5
5
  SHA512:
6
- metadata.gz: 1d1d78896c8079cfbc4e74f3f6b754047a5c597adfe87023340adae7c56029ef60873c5cfe91fd099d7aac7965db7048dfb45e10efa8d29a39e4cdbfc19d99e3
7
- data.tar.gz: f563f24c252c72e49a8bc8ba52ac8a6c5ab814d7699817fce981adee68dc74edc6e3dc82f2a5fdc5986e1b07411fbad776df5bba7099baeae930b305a03e0b92
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)
@@ -1,3 +1,3 @@
1
1
  module Graphiti
2
- VERSION = "1.2.40"
2
+ VERSION = "1.2.41"
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.2.40
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-13 00:00:00.000000000 Z
11
+ date: 2021-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jsonapi-serializable