jsonapi_compliable 0.10.0 → 0.10.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 +4 -4
- data/README.md +15 -0
- data/docs/Jsonapi/ResourceGenerator.html +1 -1
- data/docs/Jsonapi.html +1 -1
- data/docs/JsonapiCompliable/Adapters/Abstract.html +1 -1
- data/docs/JsonapiCompliable/Adapters/ActiveRecord.html +1 -1
- data/docs/JsonapiCompliable/Adapters/ActiveRecordSideloading.html +1 -1
- data/docs/JsonapiCompliable/Adapters/Null.html +1 -1
- data/docs/JsonapiCompliable/Adapters.html +1 -1
- data/docs/JsonapiCompliable/Base.html +1 -1
- data/docs/JsonapiCompliable/Deserializer.html +1 -1
- data/docs/JsonapiCompliable/Errors/BadFilter.html +1 -1
- data/docs/JsonapiCompliable/Errors/StatNotFound.html +1 -1
- data/docs/JsonapiCompliable/Errors/UnsupportedPageSize.html +1 -1
- data/docs/JsonapiCompliable/Errors/ValidationError.html +1 -1
- data/docs/JsonapiCompliable/Errors.html +1 -1
- data/docs/JsonapiCompliable/Extensions/BooleanAttribute/ClassMethods.html +1 -1
- data/docs/JsonapiCompliable/Extensions/BooleanAttribute.html +1 -1
- data/docs/JsonapiCompliable/Extensions/ExtraAttribute/ClassMethods.html +1 -1
- data/docs/JsonapiCompliable/Extensions/ExtraAttribute.html +1 -1
- data/docs/JsonapiCompliable/Extensions.html +1 -1
- data/docs/JsonapiCompliable/Query.html +1 -1
- data/docs/JsonapiCompliable/Rails.html +1 -1
- data/docs/JsonapiCompliable/Resource.html +1 -1
- data/docs/JsonapiCompliable/Scope.html +1 -1
- data/docs/JsonapiCompliable/Scoping/Base.html +1 -1
- data/docs/JsonapiCompliable/Scoping/DefaultFilter.html +1 -1
- data/docs/JsonapiCompliable/Scoping/ExtraFields.html +1 -1
- data/docs/JsonapiCompliable/Scoping/Filter.html +1 -1
- data/docs/JsonapiCompliable/Scoping/Filterable.html +1 -1
- data/docs/JsonapiCompliable/Scoping/Paginate.html +1 -1
- data/docs/JsonapiCompliable/Scoping/Sort.html +1 -1
- data/docs/JsonapiCompliable/Scoping.html +1 -1
- data/docs/JsonapiCompliable/SerializableTempId.html +1 -1
- data/docs/JsonapiCompliable/Sideload.html +29 -35
- data/docs/JsonapiCompliable/Stats/DSL.html +1 -1
- data/docs/JsonapiCompliable/Stats/Payload.html +1 -1
- data/docs/JsonapiCompliable/Stats.html +1 -1
- data/docs/JsonapiCompliable/Util/FieldParams.html +1 -1
- data/docs/JsonapiCompliable/Util/Hash.html +1 -1
- data/docs/JsonapiCompliable/Util/IncludeParams.html +1 -1
- data/docs/JsonapiCompliable/Util/Persistence.html +1 -1
- data/docs/JsonapiCompliable/Util/RelationshipPayload.html +1 -1
- data/docs/JsonapiCompliable/Util/RenderOptions.html +1 -1
- data/docs/JsonapiCompliable/Util/Sideload.html +244 -0
- data/docs/JsonapiCompliable/Util/ValidationResponse.html +1 -1
- data/docs/JsonapiCompliable/Util.html +3 -3
- data/docs/JsonapiCompliable.html +15 -15
- data/docs/_index.html +8 -1
- data/docs/class_list.html +1 -1
- data/docs/file.README.html +1 -1
- data/docs/index.html +1 -1
- data/docs/method_list.html +134 -126
- data/docs/top-level-namespace.html +1 -1
- data/lib/jsonapi_compliable/query.rb +2 -0
- data/lib/jsonapi_compliable/scope.rb +2 -1
- data/lib/jsonapi_compliable/sideload.rb +1 -3
- data/lib/jsonapi_compliable/util/sideload.rb +33 -0
- data/lib/jsonapi_compliable/version.rb +1 -1
- data/lib/jsonapi_compliable.rb +1 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1383cab9b58c9423dba85c223fbe3c18bc099c9e
|
4
|
+
data.tar.gz: 0dad7f4689a52a9f22df16ca7e60c41c752f1951
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fdbd9dd65460c70ff0b7ce3ae2d48acfa39cdba20419f33467f651fcd475f8f04d71964d0739a08b7b12317f470dfbb54e3c9fe5d20be1912b776d69fd5bd5cb
|
7
|
+
data.tar.gz: 577ba99d7b29b420121d3d84f53f99b0eb723831bbf4dd31a7d0f1e54dbb57670d5e7d2342e9e9d96284c6f7451c41a7bdc54da31806b89cf850bb30d79adfd1
|
data/README.md
CHANGED
@@ -8,6 +8,21 @@
|
|
8
8
|
|
9
9
|
Supported Rails versions: >= 4.1
|
10
10
|
|
11
|
+
### Upgrading to 0.10
|
12
|
+
|
13
|
+
`sideload_whitelist` has been moved from the resource to the controller:
|
14
|
+
|
15
|
+
```diff
|
16
|
+
class PostsController < ApplicationController
|
17
|
+
jsonapi resource: PostResource do
|
18
|
+
- sideload_whitelist({ index: [:foo] })
|
19
|
+
- end
|
20
|
+
+ sideload_whitelist({ index: [:foo] })
|
21
|
+
end
|
22
|
+
|
23
|
+
# NEW
|
24
|
+
```
|
25
|
+
|
11
26
|
### Running tests
|
12
27
|
|
13
28
|
We support Rails >= 4.1. To do so, we use the [appraisal](https://github.com/thoughtbot/appraisal) gem. So, run:
|
@@ -205,7 +205,7 @@
|
|
205
205
|
</div>
|
206
206
|
|
207
207
|
<div id="footer">
|
208
|
-
Generated on Tue Oct 3
|
208
|
+
Generated on Tue Oct 3 14:55:08 2017 by
|
209
209
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
210
210
|
0.9.9 (ruby-2.3.0).
|
211
211
|
</div>
|
data/docs/Jsonapi.html
CHANGED
@@ -105,7 +105,7 @@
|
|
105
105
|
</div>
|
106
106
|
|
107
107
|
<div id="footer">
|
108
|
-
Generated on Tue Oct 3
|
108
|
+
Generated on Tue Oct 3 14:55:06 2017 by
|
109
109
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
110
110
|
0.9.9 (ruby-2.3.0).
|
111
111
|
</div>
|
@@ -2451,7 +2451,7 @@ This method should roll back the transaction if an error is raised.</p>
|
|
2451
2451
|
</div>
|
2452
2452
|
|
2453
2453
|
<div id="footer">
|
2454
|
-
Generated on Tue Oct 3
|
2454
|
+
Generated on Tue Oct 3 14:55:08 2017 by
|
2455
2455
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
2456
2456
|
0.9.9 (ruby-2.3.0).
|
2457
2457
|
</div>
|
@@ -2233,7 +2233,7 @@ Sideload#allow_sideload</p>
|
|
2233
2233
|
</div>
|
2234
2234
|
|
2235
2235
|
<div id="footer">
|
2236
|
-
Generated on Tue Oct 3
|
2236
|
+
Generated on Tue Oct 3 14:55:08 2017 by
|
2237
2237
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
2238
2238
|
0.9.9 (ruby-2.3.0).
|
2239
2239
|
</div>
|
@@ -572,7 +572,7 @@
|
|
572
572
|
</div>
|
573
573
|
|
574
574
|
<div id="footer">
|
575
|
-
Generated on Tue Oct 3
|
575
|
+
Generated on Tue Oct 3 14:55:06 2017 by
|
576
576
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
577
577
|
0.9.9 (ruby-2.3.0).
|
578
578
|
</div>
|
@@ -1672,7 +1672,7 @@ an HTTP call, etc.</p>
|
|
1672
1672
|
</div>
|
1673
1673
|
|
1674
1674
|
<div id="footer">
|
1675
|
-
Generated on Tue Oct 3
|
1675
|
+
Generated on Tue Oct 3 14:55:08 2017 by
|
1676
1676
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1677
1677
|
0.9.9 (ruby-2.3.0).
|
1678
1678
|
</div>
|
@@ -109,7 +109,7 @@
|
|
109
109
|
</div>
|
110
110
|
|
111
111
|
<div id="footer">
|
112
|
-
Generated on Tue Oct 3
|
112
|
+
Generated on Tue Oct 3 14:55:06 2017 by
|
113
113
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
114
114
|
0.9.9 (ruby-2.3.0).
|
115
115
|
</div>
|
@@ -1708,7 +1708,7 @@ Helpful for easy-access to things like the current user.</p>
|
|
1708
1708
|
</div>
|
1709
1709
|
|
1710
1710
|
<div id="footer">
|
1711
|
-
Generated on Tue Oct 3
|
1711
|
+
Generated on Tue Oct 3 14:55:06 2017 by
|
1712
1712
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1713
1713
|
0.9.9 (ruby-2.3.0).
|
1714
1714
|
</div>
|
@@ -892,7 +892,7 @@ create/update/destroy/disassociate. Based on the request env or the
|
|
892
892
|
</div>
|
893
893
|
|
894
894
|
<div id="footer">
|
895
|
-
Generated on Tue Oct 3
|
895
|
+
Generated on Tue Oct 3 14:55:07 2017 by
|
896
896
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
897
897
|
0.9.9 (ruby-2.3.0).
|
898
898
|
</div>
|
@@ -114,7 +114,7 @@
|
|
114
114
|
</div>
|
115
115
|
|
116
116
|
<div id="footer">
|
117
|
-
Generated on Tue Oct 3
|
117
|
+
Generated on Tue Oct 3 14:55:07 2017 by
|
118
118
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
119
119
|
0.9.9 (ruby-2.3.0).
|
120
120
|
</div>
|
@@ -256,7 +256,7 @@
|
|
256
256
|
</div>
|
257
257
|
|
258
258
|
<div id="footer">
|
259
|
-
Generated on Tue Oct 3
|
259
|
+
Generated on Tue Oct 3 14:55:07 2017 by
|
260
260
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
261
261
|
0.9.9 (ruby-2.3.0).
|
262
262
|
</div>
|
@@ -254,7 +254,7 @@
|
|
254
254
|
</div>
|
255
255
|
|
256
256
|
<div id="footer">
|
257
|
-
Generated on Tue Oct 3
|
257
|
+
Generated on Tue Oct 3 14:55:07 2017 by
|
258
258
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
259
259
|
0.9.9 (ruby-2.3.0).
|
260
260
|
</div>
|
@@ -114,7 +114,7 @@
|
|
114
114
|
</div>
|
115
115
|
|
116
116
|
<div id="footer">
|
117
|
-
Generated on Tue Oct 3
|
117
|
+
Generated on Tue Oct 3 14:55:07 2017 by
|
118
118
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
119
119
|
0.9.9 (ruby-2.3.0).
|
120
120
|
</div>
|
@@ -105,7 +105,7 @@
|
|
105
105
|
</div>
|
106
106
|
|
107
107
|
<div id="footer">
|
108
|
-
Generated on Tue Oct 3
|
108
|
+
Generated on Tue Oct 3 14:55:06 2017 by
|
109
109
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
110
110
|
0.9.9 (ruby-2.3.0).
|
111
111
|
</div>
|
@@ -219,7 +219,7 @@
|
|
219
219
|
</div>
|
220
220
|
|
221
221
|
<div id="footer">
|
222
|
-
Generated on Tue Oct 3
|
222
|
+
Generated on Tue Oct 3 14:55:06 2017 by
|
223
223
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
224
224
|
0.9.9 (ruby-2.3.0).
|
225
225
|
</div>
|
@@ -202,7 +202,7 @@
|
|
202
202
|
</div>
|
203
203
|
|
204
204
|
<div id="footer">
|
205
|
-
Generated on Tue Oct 3
|
205
|
+
Generated on Tue Oct 3 14:55:06 2017 by
|
206
206
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
207
207
|
0.9.9 (ruby-2.3.0).
|
208
208
|
</div>
|
@@ -227,7 +227,7 @@
|
|
227
227
|
</div>
|
228
228
|
|
229
229
|
<div id="footer">
|
230
|
-
Generated on Tue Oct 3
|
230
|
+
Generated on Tue Oct 3 14:55:06 2017 by
|
231
231
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
232
232
|
0.9.9 (ruby-2.3.0).
|
233
233
|
</div>
|
@@ -232,7 +232,7 @@ extra attribute. See (Resource.extra_field).</p>
|
|
232
232
|
</div>
|
233
233
|
|
234
234
|
<div id="footer">
|
235
|
-
Generated on Tue Oct 3
|
235
|
+
Generated on Tue Oct 3 14:55:06 2017 by
|
236
236
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
237
237
|
0.9.9 (ruby-2.3.0).
|
238
238
|
</div>
|
@@ -107,7 +107,7 @@
|
|
107
107
|
</div>
|
108
108
|
|
109
109
|
<div id="footer">
|
110
|
-
Generated on Tue Oct 3
|
110
|
+
Generated on Tue Oct 3 14:55:06 2017 by
|
111
111
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
112
112
|
0.9.9 (ruby-2.3.0).
|
113
113
|
</div>
|
@@ -1097,7 +1097,7 @@ get, say, the total count without the overhead of fetching actual records.</p>
|
|
1097
1097
|
</div>
|
1098
1098
|
|
1099
1099
|
<div id="footer">
|
1100
|
-
Generated on Tue Oct 3
|
1100
|
+
Generated on Tue Oct 3 14:55:07 2017 by
|
1101
1101
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1102
1102
|
0.9.9 (ruby-2.3.0).
|
1103
1103
|
</div>
|
@@ -201,7 +201,7 @@
|
|
201
201
|
</div>
|
202
202
|
|
203
203
|
<div id="footer">
|
204
|
-
Generated on Tue Oct 3
|
204
|
+
Generated on Tue Oct 3 14:55:06 2017 by
|
205
205
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
206
206
|
0.9.9 (ruby-2.3.0).
|
207
207
|
</div>
|
@@ -5091,7 +5091,7 @@ Rails controller context</p>
|
|
5091
5091
|
</div>
|
5092
5092
|
|
5093
5093
|
<div id="footer">
|
5094
|
-
Generated on Tue Oct 3
|
5094
|
+
Generated on Tue Oct 3 14:55:07 2017 by
|
5095
5095
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
5096
5096
|
0.9.9 (ruby-2.3.0).
|
5097
5097
|
</div>
|
@@ -693,7 +693,7 @@ sideload</p>
|
|
693
693
|
</div>
|
694
694
|
|
695
695
|
<div id="footer">
|
696
|
-
Generated on Tue Oct 3
|
696
|
+
Generated on Tue Oct 3 14:55:07 2017 by
|
697
697
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
698
698
|
0.9.9 (ruby-2.3.0).
|
699
699
|
</div>
|
@@ -833,7 +833,7 @@ a default in certain contexts.</p>
|
|
833
833
|
</div>
|
834
834
|
|
835
835
|
<div id="footer">
|
836
|
-
Generated on Tue Oct 3
|
836
|
+
Generated on Tue Oct 3 14:55:07 2017 by
|
837
837
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
838
838
|
0.9.9 (ruby-2.3.0).
|
839
839
|
</div>
|
@@ -308,7 +308,7 @@ filter, and apply the default proc unless an explicit override is requested</p>
|
|
308
308
|
</div>
|
309
309
|
|
310
310
|
<div id="footer">
|
311
|
-
Generated on Tue Oct 3
|
311
|
+
Generated on Tue Oct 3 14:55:08 2017 by
|
312
312
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
313
313
|
0.9.9 (ruby-2.3.0).
|
314
314
|
</div>
|
@@ -291,7 +291,7 @@ for that field, run it. Otherwise, do nothing.</p>
|
|
291
291
|
</div>
|
292
292
|
|
293
293
|
<div id="footer">
|
294
|
-
Generated on Tue Oct 3
|
294
|
+
Generated on Tue Oct 3 14:55:08 2017 by
|
295
295
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
296
296
|
0.9.9 (ruby-2.3.0).
|
297
297
|
</div>
|
@@ -303,7 +303,7 @@ aliases. If valid, call either the default or custom filtering logic.</p>
|
|
303
303
|
</div>
|
304
304
|
|
305
305
|
<div id="footer">
|
306
|
-
Generated on Tue Oct 3
|
306
|
+
Generated on Tue Oct 3 14:55:08 2017 by
|
307
307
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
308
308
|
0.9.9 (ruby-2.3.0).
|
309
309
|
</div>
|
@@ -354,7 +354,7 @@
|
|
354
354
|
</div>
|
355
355
|
|
356
356
|
<div id="footer">
|
357
|
-
Generated on Tue Oct 3
|
357
|
+
Generated on Tue Oct 3 14:55:06 2017 by
|
358
358
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
359
359
|
0.9.9 (ruby-2.3.0).
|
360
360
|
</div>
|
@@ -603,7 +603,7 @@ explicitly specified in the request.</p>
|
|
603
603
|
</div>
|
604
604
|
|
605
605
|
<div id="footer">
|
606
|
-
Generated on Tue Oct 3
|
606
|
+
Generated on Tue Oct 3 14:55:08 2017 by
|
607
607
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
608
608
|
0.9.9 (ruby-2.3.0).
|
609
609
|
</div>
|
@@ -444,7 +444,7 @@ proc:</p>
|
|
444
444
|
</div>
|
445
445
|
|
446
446
|
<div id="footer">
|
447
|
-
Generated on Tue Oct 3
|
447
|
+
Generated on Tue Oct 3 14:55:07 2017 by
|
448
448
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
449
449
|
0.9.9 (ruby-2.3.0).
|
450
450
|
</div>
|
@@ -107,7 +107,7 @@
|
|
107
107
|
</div>
|
108
108
|
|
109
109
|
<div id="footer">
|
110
|
-
Generated on Tue Oct 3
|
110
|
+
Generated on Tue Oct 3 14:55:06 2017 by
|
111
111
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
112
112
|
0.9.9 (ruby-2.3.0).
|
113
113
|
</div>
|
@@ -206,7 +206,7 @@ reference it directly.</p>
|
|
206
206
|
</div>
|
207
207
|
|
208
208
|
<div id="footer">
|
209
|
-
Generated on Tue Oct 3
|
209
|
+
Generated on Tue Oct 3 14:55:06 2017 by
|
210
210
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
211
211
|
0.9.9 (ruby-2.3.0).
|
212
212
|
</div>
|
@@ -789,7 +789,7 @@ instantiation.</p>
|
|
789
789
|
<li class="public ">
|
790
790
|
<span class="summary_signature">
|
791
791
|
|
792
|
-
<a href="#resolve-instance_method" title="#resolve (instance method)">#<strong>resolve</strong>(parents, query, namespace
|
792
|
+
<a href="#resolve-instance_method" title="#resolve (instance method)">#<strong>resolve</strong>(parents, query, namespace) ⇒ void </a>
|
793
793
|
|
794
794
|
|
795
795
|
|
@@ -1802,6 +1802,8 @@ keyword arguments to fire only for a specific persistence method.</p>
|
|
1802
1802
|
<pre class="lines">
|
1803
1803
|
|
1804
1804
|
|
1805
|
+
333
|
1806
|
+
334
|
1805
1807
|
335
|
1806
1808
|
336
|
1807
1809
|
337
|
@@ -1810,12 +1812,10 @@ keyword arguments to fire only for a specific persistence method.</p>
|
|
1810
1812
|
340
|
1811
1813
|
341
|
1812
1814
|
342
|
1813
|
-
343
|
1814
|
-
344
|
1815
|
-
345</pre>
|
1815
|
+
343</pre>
|
1816
1816
|
</td>
|
1817
1817
|
<td>
|
1818
|
-
<pre class="code"><span class="info file"># File 'lib/jsonapi_compliable/sideload.rb', line
|
1818
|
+
<pre class="code"><span class="info file"># File 'lib/jsonapi_compliable/sideload.rb', line 333</span>
|
1819
1819
|
|
1820
1820
|
<span class='kw'>def</span> <span class='id identifier rubyid_all_sideloads'>all_sideloads</span>
|
1821
1821
|
<span class='lbrace'>{</span><span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_tap'>tap</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_all'>all</span><span class='op'>|</span>
|
@@ -1929,6 +1929,8 @@ directly</p>
|
|
1929
1929
|
<pre class="lines">
|
1930
1930
|
|
1931
1931
|
|
1932
|
+
313
|
1933
|
+
314
|
1932
1934
|
315
|
1933
1935
|
316
|
1934
1936
|
317
|
@@ -1936,12 +1938,10 @@ directly</p>
|
|
1936
1938
|
319
|
1937
1939
|
320
|
1938
1940
|
321
|
1939
|
-
322
|
1940
|
-
323
|
1941
|
-
324</pre>
|
1941
|
+
322</pre>
|
1942
1942
|
</td>
|
1943
1943
|
<td>
|
1944
|
-
<pre class="code"><span class="info file"># File 'lib/jsonapi_compliable/sideload.rb', line
|
1944
|
+
<pre class="code"><span class="info file"># File 'lib/jsonapi_compliable/sideload.rb', line 313</span>
|
1945
1945
|
|
1946
1946
|
<span class='kw'>def</span> <span class='id identifier rubyid_allow_sideload'>allow_sideload</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_blk'>blk</span><span class='rparen'>)</span>
|
1947
1947
|
<span class='id identifier rubyid_sideload'>sideload</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="" title="JsonapiCompliable::Sideload (class)">Sideload</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="#initialize-instance_method" title="JsonapiCompliable::Sideload#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span>
|
@@ -2158,6 +2158,8 @@ in your resource directly.</p>
|
|
2158
2158
|
<pre class="lines">
|
2159
2159
|
|
2160
2160
|
|
2161
|
+
345
|
2162
|
+
346
|
2161
2163
|
347
|
2162
2164
|
348
|
2163
2165
|
349
|
@@ -2165,12 +2167,10 @@ in your resource directly.</p>
|
|
2165
2167
|
351
|
2166
2168
|
352
|
2167
2169
|
353
|
2168
|
-
354
|
2169
|
-
355
|
2170
|
-
356</pre>
|
2170
|
+
354</pre>
|
2171
2171
|
</td>
|
2172
2172
|
<td>
|
2173
|
-
<pre class="code"><span class="info file"># File 'lib/jsonapi_compliable/sideload.rb', line
|
2173
|
+
<pre class="code"><span class="info file"># File 'lib/jsonapi_compliable/sideload.rb', line 345</span>
|
2174
2174
|
|
2175
2175
|
<span class='kw'>def</span> <span class='id identifier rubyid_association_names'>association_names</span><span class='lparen'>(</span><span class='id identifier rubyid_memo'>memo</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
2176
2176
|
<span class='id identifier rubyid_all_sideloads'>all_sideloads</span><span class='period'>.</span><span class='id identifier rubyid_each_pair'>each_pair</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_sl'>sl</span><span class='op'>|</span>
|
@@ -2259,17 +2259,17 @@ in your resource directly.</p>
|
|
2259
2259
|
<pre class="lines">
|
2260
2260
|
|
2261
2261
|
|
2262
|
+
363
|
2263
|
+
364
|
2262
2264
|
365
|
2263
2265
|
366
|
2264
2266
|
367
|
2265
2267
|
368
|
2266
2268
|
369
|
2267
|
-
370
|
2268
|
-
371
|
2269
|
-
372</pre>
|
2269
|
+
370</pre>
|
2270
2270
|
</td>
|
2271
2271
|
<td>
|
2272
|
-
<pre class="code"><span class="info file"># File 'lib/jsonapi_compliable/sideload.rb', line
|
2272
|
+
<pre class="code"><span class="info file"># File 'lib/jsonapi_compliable/sideload.rb', line 363</span>
|
2273
2273
|
|
2274
2274
|
<span class='kw'>def</span> <span class='id identifier rubyid_fire_hooks!'>fire_hooks!</span><span class='lparen'>(</span><span class='id identifier rubyid_parent'>parent</span><span class='comma'>,</span> <span class='id identifier rubyid_objects'>objects</span><span class='comma'>,</span> <span class='id identifier rubyid_method'>method</span><span class='rparen'>)</span>
|
2275
2275
|
<span class='kw'>return</span> <span class='kw'>unless</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_hooks'>hooks</span>
|
@@ -2547,14 +2547,14 @@ ActiveRecord:</p>
|
|
2547
2547
|
<pre class="lines">
|
2548
2548
|
|
2549
2549
|
|
2550
|
+
357
|
2551
|
+
358
|
2550
2552
|
359
|
2551
2553
|
360
|
2552
|
-
361
|
2553
|
-
362
|
2554
|
-
363</pre>
|
2554
|
+
361</pre>
|
2555
2555
|
</td>
|
2556
2556
|
<td>
|
2557
|
-
<pre class="code"><span class="info file"># File 'lib/jsonapi_compliable/sideload.rb', line
|
2557
|
+
<pre class="code"><span class="info file"># File 'lib/jsonapi_compliable/sideload.rb', line 357</span>
|
2558
2558
|
|
2559
2559
|
<span class='kw'>def</span> <span class='id identifier rubyid_polymorphic_child_for_type'>polymorphic_child_for_type</span><span class='lparen'>(</span><span class='id identifier rubyid_type'>type</span><span class='rparen'>)</span>
|
2560
2560
|
<span class='id identifier rubyid_polymorphic_groups'>polymorphic_groups</span><span class='period'>.</span><span class='id identifier rubyid_values'>values</span><span class='period'>.</span><span class='id identifier rubyid_find'>find</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_v'>v</span><span class='op'>|</span>
|
@@ -2569,7 +2569,7 @@ ActiveRecord:</p>
|
|
2569
2569
|
<div class="method_details ">
|
2570
2570
|
<h3 class="signature " id="resolve-instance_method">
|
2571
2571
|
|
2572
|
-
#<strong>resolve</strong>(parents, query, namespace
|
2572
|
+
#<strong>resolve</strong>(parents, query, namespace) ⇒ <tt>void</tt>
|
2573
2573
|
|
2574
2574
|
|
2575
2575
|
|
@@ -2640,8 +2640,6 @@ ActiveRecord:</p>
|
|
2640
2640
|
<span class='type'>(<tt>Symbol</tt>)</span>
|
2641
2641
|
|
2642
2642
|
|
2643
|
-
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
2644
|
-
|
2645
2643
|
|
2646
2644
|
—
|
2647
2645
|
<div class='inline'>
|
@@ -2676,16 +2674,12 @@ ActiveRecord:</p>
|
|
2676
2674
|
270
|
2677
2675
|
271
|
2678
2676
|
272
|
2679
|
-
273
|
2680
|
-
274
|
2681
|
-
275</pre>
|
2677
|
+
273</pre>
|
2682
2678
|
</td>
|
2683
2679
|
<td>
|
2684
2680
|
<pre class="code"><span class="info file"># File 'lib/jsonapi_compliable/sideload.rb', line 267</span>
|
2685
2681
|
|
2686
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_resolve'>resolve</span><span class='lparen'>(</span><span class='id identifier rubyid_parents'>parents</span><span class='comma'>,</span> <span class='id identifier rubyid_query'>query</span><span class='comma'>,</span> <span class='id identifier rubyid_namespace'>namespace</span
|
2687
|
-
<span class='id identifier rubyid_namespace'>namespace</span> <span class='op'>||=</span> <span class='id identifier rubyid_name'>name</span>
|
2688
|
-
|
2682
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_resolve'>resolve</span><span class='lparen'>(</span><span class='id identifier rubyid_parents'>parents</span><span class='comma'>,</span> <span class='id identifier rubyid_query'>query</span><span class='comma'>,</span> <span class='id identifier rubyid_namespace'>namespace</span><span class='rparen'>)</span>
|
2689
2683
|
<span class='kw'>if</span> <span class='id identifier rubyid_polymorphic?'>polymorphic?</span>
|
2690
2684
|
<span class='id identifier rubyid_resolve_polymorphic'>resolve_polymorphic</span><span class='lparen'>(</span><span class='id identifier rubyid_parents'>parents</span><span class='comma'>,</span> <span class='id identifier rubyid_query'>query</span><span class='rparen'>)</span>
|
2691
2685
|
<span class='kw'>else</span>
|
@@ -2954,12 +2948,12 @@ in your resource directly.</p>
|
|
2954
2948
|
<pre class="lines">
|
2955
2949
|
|
2956
2950
|
|
2957
|
-
|
2958
|
-
|
2959
|
-
|
2951
|
+
328
|
2952
|
+
329
|
2953
|
+
330</pre>
|
2960
2954
|
</td>
|
2961
2955
|
<td>
|
2962
|
-
<pre class="code"><span class="info file"># File 'lib/jsonapi_compliable/sideload.rb', line
|
2956
|
+
<pre class="code"><span class="info file"># File 'lib/jsonapi_compliable/sideload.rb', line 328</span>
|
2963
2957
|
|
2964
2958
|
<span class='kw'>def</span> <span class='id identifier rubyid_sideload'>sideload</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
|
2965
2959
|
<span class='ivar'>@sideloads</span><span class='lbracket'>[</span><span class='id identifier rubyid_name'>name</span><span class='rbracket'>]</span>
|
@@ -2974,7 +2968,7 @@ in your resource directly.</p>
|
|
2974
2968
|
</div>
|
2975
2969
|
|
2976
2970
|
<div id="footer">
|
2977
|
-
Generated on Tue Oct 3
|
2971
|
+
Generated on Tue Oct 3 14:55:07 2017 by
|
2978
2972
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
2979
2973
|
0.9.9 (ruby-2.3.0).
|
2980
2974
|
</div>
|
@@ -989,7 +989,7 @@ configured.</p>
|
|
989
989
|
</div>
|
990
990
|
|
991
991
|
<div id="footer">
|
992
|
-
Generated on Tue Oct 3
|
992
|
+
Generated on Tue Oct 3 14:55:07 2017 by
|
993
993
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
994
994
|
0.9.9 (ruby-2.3.0).
|
995
995
|
</div>
|
@@ -381,7 +381,7 @@ results.</p>
|
|
381
381
|
</div>
|
382
382
|
|
383
383
|
<div id="footer">
|
384
|
-
Generated on Tue Oct 3
|
384
|
+
Generated on Tue Oct 3 14:55:08 2017 by
|
385
385
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
386
386
|
0.9.9 (ruby-2.3.0).
|
387
387
|
</div>
|
@@ -107,7 +107,7 @@
|
|
107
107
|
</div>
|
108
108
|
|
109
109
|
<div id="footer">
|
110
|
-
Generated on Tue Oct 3
|
110
|
+
Generated on Tue Oct 3 14:55:06 2017 by
|
111
111
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
112
112
|
0.9.9 (ruby-2.3.0).
|
113
113
|
</div>
|
@@ -218,7 +218,7 @@
|
|
218
218
|
</div>
|
219
219
|
|
220
220
|
<div id="footer">
|
221
|
-
Generated on Tue Oct 3
|
221
|
+
Generated on Tue Oct 3 14:55:08 2017 by
|
222
222
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
223
223
|
0.9.9 (ruby-2.3.0).
|
224
224
|
</div>
|
@@ -461,7 +461,7 @@
|
|
461
461
|
</div>
|
462
462
|
|
463
463
|
<div id="footer">
|
464
|
-
Generated on Tue Oct 3
|
464
|
+
Generated on Tue Oct 3 14:55:07 2017 by
|
465
465
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
466
466
|
0.9.9 (ruby-2.3.0).
|
467
467
|
</div>
|
@@ -289,7 +289,7 @@
|
|
289
289
|
</div>
|
290
290
|
|
291
291
|
<div id="footer">
|
292
|
-
Generated on Tue Oct 3
|
292
|
+
Generated on Tue Oct 3 14:55:08 2017 by
|
293
293
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
294
294
|
0.9.9 (ruby-2.3.0).
|
295
295
|
</div>
|
@@ -435,7 +435,7 @@ know the primary key value of the parent before persisting the child.</p>
|
|
435
435
|
</div>
|
436
436
|
|
437
437
|
<div id="footer">
|
438
|
-
Generated on Tue Oct 3
|
438
|
+
Generated on Tue Oct 3 14:55:08 2017 by
|
439
439
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
440
440
|
0.9.9 (ruby-2.3.0).
|
441
441
|
</div>
|