json_api_resource 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/json_api_resource/requestable.rb +4 -5
- data/lib/json_api_resource/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: 6474e009ab7b6bad356230cf516dc88eb3ca4f2b
|
4
|
+
data.tar.gz: 5e31230c9ba8397ced81de769da1b8ee1e45ef9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a13aec76a75d63b930058fb3061fb67452763ae7f05cbff83eed962b1a5af13d7b3d91e39e8c05e245295d70aa0e276177fac04259829876993e0c18fa7de13c
|
7
|
+
data.tar.gz: ae877078891db1fdd77b4a8d9f9c0632672b99e4b4ff81e7a0da15fa9018aa4c8488175fdc8df842cea99e13f5553712747126e3e3dc57b2cea69e46ab42f8c1
|
@@ -21,11 +21,10 @@ module JsonApiResource
|
|
21
21
|
|
22
22
|
result = result.all if result.is_a? JsonApiClient::Scope
|
23
23
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
)
|
24
|
+
result.map! do |result|
|
25
|
+
new(client: result)
|
26
|
+
end
|
27
|
+
|
29
28
|
rescue JsonApiClient::Errors::ServerError => e
|
30
29
|
empty_set_with_errors e
|
31
30
|
end
|