grape-jsonapi-resources 0.0.5 → 0.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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 575cc7e2962074d9f9e4ffb125db8b851e991e28
|
4
|
+
data.tar.gz: b1af375ccf4b1bf922704ce91b703bf2f6d23cad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: edac78ce14e4248f4222c506902402afc908bcd978f45ac38b36edf9cc3b0578f854df65a5fd86b3e7c40205cc7ab51045c2c9788c1582c036979ec51996bfda
|
7
|
+
data.tar.gz: 941743ea6628246b0b04afd9874f8a38f99e22789a0916725d4d55b000f72679201fa7ab25046a5ab6a2e839d7bc0894048b52f92504a132ab8c21a7b8fa1880
|
@@ -36,8 +36,9 @@ module Grape
|
|
36
36
|
|
37
37
|
resource_instances = nil
|
38
38
|
if resource.respond_to?(:to_ary)
|
39
|
-
resource_instances = resource.to_ary.collect do |each_resource|
|
40
|
-
|
39
|
+
resource_instances = resource.to_ary.compact.collect do |each_resource|
|
40
|
+
each_resource_class = resource_class_for(each_resource)
|
41
|
+
each_resource_class.new(each_resource, context)
|
41
42
|
end
|
42
43
|
else
|
43
44
|
resource_instances = resource_class.new(resource, context)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grape-jsonapi-resources
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cary Dunn
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-08-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: grape
|
@@ -145,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
145
145
|
version: '0'
|
146
146
|
requirements: []
|
147
147
|
rubyforge_project:
|
148
|
-
rubygems_version: 2.
|
148
|
+
rubygems_version: 2.5.1
|
149
149
|
signing_key:
|
150
150
|
specification_version: 4
|
151
151
|
summary: Use jsonapi-resources in grape
|