simple-json-api-serializer 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/Gemfile.lock +1 -1
- data/lib/json_api/relationship_serializer.rb +2 -2
- data/lib/json_api/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: 1899feef8f0630e39e0286b8beecd42c7ee3763d
|
4
|
+
data.tar.gz: 73cdd163d55a18ed33275db187c37925e1a35e9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce5613bed48cfa402e1ecf6d3ca7c4f70e85af0d06d4ad2a996256fe273c155c421f455b35d3fe4a0e97264e67a9d8ad31d28527dd05e024449e998dd0008e18
|
7
|
+
data.tar.gz: 575fa623d73a0ea7a56ec2ab0b237eb4347e8942431f1506c417f721b6fdeaa6b7f56f0f96a8e99650648725606a56dcb5c99f04388f8f3a11d3bb02589f3f3b
|
data/Gemfile.lock
CHANGED
@@ -70,7 +70,7 @@ module JSONApi
|
|
70
70
|
return if options[:links] == false
|
71
71
|
|
72
72
|
id = Utils.canonicalize_id(object.send(options[:id_attribute] || :id))
|
73
|
-
type = options[:
|
73
|
+
type = options[:name]
|
74
74
|
|
75
75
|
{ related: "#{options[:base_url] || ""}/#{options[:parent_type]}/#{id}/#{type}" }
|
76
76
|
end
|
@@ -92,7 +92,7 @@ module JSONApi
|
|
92
92
|
return if options[:links] != true
|
93
93
|
|
94
94
|
id = Utils.canonicalize_id(object.send(options[:id_attribute] || :id))
|
95
|
-
type =
|
95
|
+
type = options[:name]
|
96
96
|
|
97
97
|
{ related: "#{options[:base_url] || ""}/#{options[:parent_type]}/#{id}/#{type}" }
|
98
98
|
end
|
data/lib/json_api/version.rb
CHANGED