grape-jsonapi-resources 0.0.2 → 0.0.3

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: 1482149e25e0b798ea671dd78d8ad46ecdbf45ab
4
- data.tar.gz: fefd078234f23d2fd4a1ed432e8f9cd03f223753
3
+ metadata.gz: d724399d91aa89193cf6f8bd2aa712d675026935
4
+ data.tar.gz: a5ae6bf9e11338c5bdf0e48508c231c81a1f69c4
5
5
  SHA512:
6
- metadata.gz: f19321fbb60946b17527c5aae964fec9f2e9ec4b7678ae6102e37532a02a35d213b083ee9826b200410728dfde178cb4cd0c3deb92ca9bc8822924877191a8d7
7
- data.tar.gz: 093c57eb13304e1268ea845d7d73db392bbb47a9620ddd9aec2c4a780d215bc602c3f6018fd49f2b3960b2d3af9606d673d1ab16f73498f9fc3f64349b6a97ae
6
+ metadata.gz: baf2a59a6dfd2d5f39a36be50e7aeac7fc7c4498168bafc9af12f09902068d43f5fd9eabc0c21d54d92b9e43b6b40fb5a43117f8c4d99d554d1e300b001dad0a
7
+ data.tar.gz: 0efef4a40c27f05bfeb7099b176b335a84906206f6e370d635d23f74c78fd23d7c06ca3cb1a96a870413fd2be5c55a1cd8f67d5bf9b9a5729aeba795c9540290
@@ -18,7 +18,7 @@ module Grape
18
18
 
19
19
  resource_class = resource_class_for(resource)
20
20
 
21
- unless resource_class
21
+ if resource_class.nil? && resource.blank?
22
22
  # Return blank object
23
23
  blank_return = {}
24
24
  if resource.is_a?(Array)
@@ -1,5 +1,5 @@
1
1
  module Grape
2
2
  module JSONAPIResources
3
- VERSION = '0.0.2'
3
+ VERSION = '0.0.3'
4
4
  end
5
5
  end
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.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cary Dunn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-07 00:00:00.000000000 Z
11
+ date: 2015-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grape