contentful_model 0.1.7 → 0.1.7.1
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 +4 -4
- data/lib/contentful_model/base.rb +1 -1
- data/lib/contentful_model/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d2d355e60fd1a5df73ff632025fd2a2fecfbc4ce
|
|
4
|
+
data.tar.gz: 44795c690dd5d6142240f7944b178ed76f9bc087
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 24758869403fb3fccda9b0e97ba2c6186e2a33780d8afdc8cae11b726a251912bc2d59b4c60576a07db52504929410786a09e8ae00c487a14a744ccdd48e3e71
|
|
7
|
+
data.tar.gz: d39706301c823988bf8fa76da208fd65fcd1c5aefc85a8704aa37262cbff1d162d9500df9e4b9bad72a276d44c2b1d810ba8d1b407e00c6e2eb8fb6853eab97e
|
|
@@ -15,7 +15,7 @@ module ContentfulModel
|
|
|
15
15
|
# we need to pull out any Contentful::Link references, and also things which don't have any fields at all
|
|
16
16
|
# because they're newly created (we think exposing these in the Contentful API is a bug, actually)
|
|
17
17
|
if result.is_a?(Array)
|
|
18
|
-
result.reject! {|r| r.is_a?(Contentful::Link) || r.invalid?}
|
|
18
|
+
result.reject! {|r| r.is_a?(Contentful::Link) || (r.respond_to?(:invalid) && r.invalid?)}
|
|
19
19
|
elsif result.is_a?(Contentful::Link)
|
|
20
20
|
result = nil
|
|
21
21
|
elsif result.respond_to?(:fields) && result.send(:fields).empty?
|