jsonapi-resources 0.9.1.beta2 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jsonapi/relationship_builder.rb +2 -0
- data/lib/jsonapi/resources/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 228adb9ade738e5407a5ae9a5703f7cf5b45af69
|
4
|
+
data.tar.gz: 61fdfbc616b39f2fcd354220d31e8bec9e7820b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9ca0d04854314ef0df6f5566ea7edbfb3c8767487e7de9376f99b3e36d5e96bbc87a20b54aae4a911feb841709fd13411f57cc35913011348077c66e96f3049
|
7
|
+
data.tar.gz: c8368190cf3edf7bb23b98949c1444e8b5df018c56658f4d8f8a905d4cdce7e5c37008227aaaec7c1d740eecf12885713297fc6e1799f3cda2c6b6eebb9da45b
|
@@ -60,6 +60,8 @@ module JSONAPI
|
|
60
60
|
|
61
61
|
resource_klass = relationship.resource_klass
|
62
62
|
|
63
|
+
records = resource_klass.apply_includes(records, options)
|
64
|
+
|
63
65
|
filters = options.fetch(:filters, {})
|
64
66
|
unless filters.nil? || filters.empty?
|
65
67
|
records = resource_klass.apply_filters(records, filters, options)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jsonapi-resources
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Gebhardt
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2018-08-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -212,12 +212,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
212
212
|
version: '2.1'
|
213
213
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
214
214
|
requirements:
|
215
|
-
- - "
|
215
|
+
- - ">="
|
216
216
|
- !ruby/object:Gem::Version
|
217
|
-
version:
|
217
|
+
version: '0'
|
218
218
|
requirements: []
|
219
219
|
rubyforge_project:
|
220
|
-
rubygems_version: 2.5.2.
|
220
|
+
rubygems_version: 2.5.2.3
|
221
221
|
signing_key:
|
222
222
|
specification_version: 4
|
223
223
|
summary: Easily support JSON API in Rails.
|