json_api_responders 1.2.0 → 1.2.1
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: 4940c75cb6f3843cf93e364560efd48fd2f5c204
|
4
|
+
data.tar.gz: e3d083e4e175e461b3b78dfc31c5688d556bbe9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c232f8cfe3c9195fb423d9dbd86726dd6282cc4cc2f7a9d42fbb93b8dec66973a3ed89997784c51450105a638ffd9b744b1494b5c62cac34fab063cec09f9dd
|
7
|
+
data.tar.gz: 8a26d806a4113929c6b03ee24c2062244d96ddf38073ed42c53517931269613be0e7adc19a6b0b15a3146d7c5c85d31a47057ded6a39954a7832a0b4a41220db
|
@@ -48,7 +48,8 @@ module JsonApiResponders
|
|
48
48
|
render_options.merge(
|
49
49
|
json: resource,
|
50
50
|
serializer_key => serializer_class,
|
51
|
-
include: options[:include]
|
51
|
+
include: options[:include],
|
52
|
+
meta: options[:meta]
|
52
53
|
)
|
53
54
|
end
|
54
55
|
|
@@ -66,7 +67,7 @@ module JsonApiResponders
|
|
66
67
|
end
|
67
68
|
|
68
69
|
def relation?
|
69
|
-
resource.is_a?(ActiveRecord::Relation)
|
70
|
+
resource.is_a?(ActiveRecord::Relation) || resource.is_a?(Array)
|
70
71
|
end
|
71
72
|
end
|
72
73
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: json_api_responders
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stanko Krtalić Rusendić
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|