ar_doc_store 2.0.5 → 2.0.6

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: 2b240a1ab2ff588d6c1f98b2cdc99b379ed6507504e19859c17d36e833d80012
4
- data.tar.gz: da76575f01ffb476cf64f6a2c2761d39a3d89933ca9d6522ee735f9414eef2d6
3
+ metadata.gz: db167289226d7e1d21afe80b95fa175640d13a4d2d903e1ca43595f69f1f3465
4
+ data.tar.gz: f94216574f657aed7f0378ca013c5dc7b1a5bd0c2637e2f7e36013cb3934cc46
5
5
  SHA512:
6
- metadata.gz: 3ece48fc228922ce651a07f7424a7bd2ec6fe371275b28852cd141a867582d007f0183de10335f1948605d656669ddbb0448e007aa992e9cf03e1b3dfe81d323
7
- data.tar.gz: f358f66477882c77a2167b857364974a07c9f6416e2ea1602c8639943548c0142f56ab9f0167794c0c51bb59211bb80fa045d5260e39641f038e6cd35e2643b3
6
+ metadata.gz: 0f925708da6be61cd6401e1cd21e3887aeb3303d37f23a02724660c339ba88e28947c69e5c22ed84a24d1f114c8a118cd364627ca9d6710a0532cef2a694bd7b
7
+ data.tar.gz: ec0c9d944668d6829d97b6f4bee64510823608e496f2f43d0158ec54f85d6b5804c054520fc95122aa130096760e5cfdea765c2a3f3dd520161793e4bccdd18b
@@ -22,8 +22,9 @@ module ArDocStore
22
22
  end
23
23
  def mark_embeds_as_persisted
24
24
  json_attributes.values.each do |value|
25
- if value.respond_to?(:embedded?) && value.embedded? && respond_to?(value.attribute) && !public_send(value.attribute).nil?
26
- public_send(value.attribute).persist
25
+ if value.respond_to?(:embedded?) && value.embedded? && respond_to?(value.attribute)
26
+ val = public_send(value.attribute)
27
+ val.persist if val && val.respond_to?(:persist)
27
28
  end
28
29
  end
29
30
  end
@@ -1,3 +1,3 @@
1
1
  module ArDocStore
2
- VERSION = "2.0.5"
2
+ VERSION = "2.0.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ar_doc_store
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.5
4
+ version: 2.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Furber
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-20 00:00:00.000000000 Z
11
+ date: 2018-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord