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 +4 -4
- data/lib/ar_doc_store/model.rb +3 -2
- data/lib/ar_doc_store/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: db167289226d7e1d21afe80b95fa175640d13a4d2d903e1ca43595f69f1f3465
|
4
|
+
data.tar.gz: f94216574f657aed7f0378ca013c5dc7b1a5bd0c2637e2f7e36013cb3934cc46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f925708da6be61cd6401e1cd21e3887aeb3303d37f23a02724660c339ba88e28947c69e5c22ed84a24d1f114c8a118cd364627ca9d6710a0532cef2a694bd7b
|
7
|
+
data.tar.gz: ec0c9d944668d6829d97b6f4bee64510823608e496f2f43d0158ec54f85d6b5804c054520fc95122aa130096760e5cfdea765c2a3f3dd520161793e4bccdd18b
|
data/lib/ar_doc_store/model.rb
CHANGED
@@ -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)
|
26
|
-
public_send(value.attribute)
|
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
|
data/lib/ar_doc_store/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2018-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|