json_api_model 0.3.0 → 0.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b4309beecbe58dd95fe10e0aa45cfe3c9ab93710
4
- data.tar.gz: 2cc02483222c4319429bd5539879cd8c20fe00d1
3
+ metadata.gz: c467af332f106f461c84f359e67298dd69cb986a
4
+ data.tar.gz: 23a89ca934c867f85e4fcfd82f66f50f9bda0396
5
5
  SHA512:
6
- metadata.gz: 137fd5629ae09611ef523a7092d4fe552900d78f189de0cc74d097f3b517144f81a556fbd54aa0d1768a7987617617a5751ce8baee4d8b1fcc18db5b77795502
7
- data.tar.gz: f69d1952b0a22558d269e8549b40e1ed451e3df3c1c589541652cecb75c71c7ab45ecdff9eea550a53f3d4fd7ca2a5362462af2eeb17eb9395c0d286f2bd99be
6
+ metadata.gz: e48f666314dfd88b60b2f74c09c2ca57fbe0ee6c2274a1f06c1330db4306f873ad3c280f30bd5d74027420a5b6bf66742db53dc570ccd2c0e8d790a1f19cfe43
7
+ data.tar.gz: cc761bb1573596a40d5b5cc4dc0a46db210677cb49a555737dd5b27a94287d49edf66a8e7d99247e1b35cf2188e81d4db08ccd837ced73a4a59e32f8a89e709e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- json_api_model (0.3.0)
4
+ json_api_model (0.3.1)
5
5
  activesupport
6
6
  json_api_client
7
7
 
@@ -17,7 +17,8 @@ module JsonApiModel
17
17
  def flattable?( results )
18
18
  results.is_a?( JsonApiModel::ResultSet ) ||
19
19
  results.is_a?( Array ) ||
20
- results.is_a?( JsonApiModel::Scope )
20
+ results.is_a?( JsonApiModel::Scope ) ||
21
+ results.respond_to?( :first )
21
22
  end
22
23
  end
23
24
  end
@@ -1,3 +1,3 @@
1
1
  module JsonApiModel
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json_api_model
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Orlov