restful-jsonapi 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/restful/jsonapi/restify_param.rb +1 -1
- data/lib/restful/jsonapi/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 179fb343c19c986c98dcad509981ea7c0a2f1bd6
|
4
|
+
data.tar.gz: 715ef0615a9e8da7ce0286f42289e3bbb75fd2dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4971890deed77d6526e8e1a7a9bb462ded3654d98e90386d3595ad8b2efda27e844253bf7fdba86464391761c7cbd41706c76739bdc365d82d180e873b1aaa01
|
7
|
+
data.tar.gz: 07c810d67931608fbd97d99a96e4db7e7a83f0adaf3cc55df3bba64d5bef38e7fc772aee737c741af403feaed8b410961df854ed498afc8aad41c15dfe3a1c0f
|
@@ -41,7 +41,7 @@ module Restful
|
|
41
41
|
end
|
42
42
|
|
43
43
|
def restify_belongs_to(relationship_name, relationship_data)
|
44
|
-
if relationship_data[:data].
|
44
|
+
if relationship_data[:data].values_at(:attributes,:relationships).compact.length > 0
|
45
45
|
relationship_key = relationship_name.to_s.underscore+"_attributes"
|
46
46
|
{relationship_key => restify_data(relationship_name,relationship_data[:data])}
|
47
47
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: restful-jsonapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zach Wentz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|