jsonapi_compliable 0.11.4 → 0.11.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/docs/Jsonapi.html +1 -1
  3. data/docs/Jsonapi/ResourceGenerator.html +32 -22
  4. data/docs/JsonapiCompliable.html +174 -19
  5. data/docs/JsonapiCompliable/Adapters.html +1 -1
  6. data/docs/JsonapiCompliable/Adapters/Abstract.html +1 -1
  7. data/docs/JsonapiCompliable/Adapters/ActiveRecord.html +41 -31
  8. data/docs/JsonapiCompliable/Adapters/ActiveRecordSideloading.html +47 -39
  9. data/docs/JsonapiCompliable/Adapters/Null.html +1 -1
  10. data/docs/JsonapiCompliable/Base.html +70 -14
  11. data/docs/JsonapiCompliable/Configuration.html +308 -0
  12. data/docs/JsonapiCompliable/Deserializer.html +1 -1
  13. data/docs/JsonapiCompliable/Errors.html +2 -2
  14. data/docs/JsonapiCompliable/Errors/BadFilter.html +1 -1
  15. data/docs/JsonapiCompliable/Errors/InvalidInclude.html +266 -0
  16. data/docs/JsonapiCompliable/Errors/RecordNotFound.html +124 -0
  17. data/docs/JsonapiCompliable/Errors/StatNotFound.html +10 -10
  18. data/docs/JsonapiCompliable/Errors/UnsupportedPageSize.html +1 -1
  19. data/docs/JsonapiCompliable/Errors/ValidationError.html +1 -1
  20. data/docs/JsonapiCompliable/Extensions.html +1 -1
  21. data/docs/JsonapiCompliable/Extensions/BooleanAttribute.html +1 -1
  22. data/docs/JsonapiCompliable/Extensions/BooleanAttribute/ClassMethods.html +1 -1
  23. data/docs/JsonapiCompliable/Extensions/ExtraAttribute.html +1 -1
  24. data/docs/JsonapiCompliable/Extensions/ExtraAttribute/ClassMethods.html +1 -1
  25. data/docs/JsonapiCompliable/Query.html +1 -1
  26. data/docs/JsonapiCompliable/Rails.html +1 -1
  27. data/docs/JsonapiCompliable/Resource.html +3 -3
  28. data/docs/JsonapiCompliable/Scope.html +171 -17
  29. data/docs/JsonapiCompliable/Scoping.html +1 -1
  30. data/docs/JsonapiCompliable/Scoping/Base.html +1 -1
  31. data/docs/JsonapiCompliable/Scoping/DefaultFilter.html +2 -2
  32. data/docs/JsonapiCompliable/Scoping/ExtraFields.html +2 -2
  33. data/docs/JsonapiCompliable/Scoping/Filter.html +1 -1
  34. data/docs/JsonapiCompliable/Scoping/Filterable.html +1 -1
  35. data/docs/JsonapiCompliable/Scoping/Paginate.html +2 -2
  36. data/docs/JsonapiCompliable/Scoping/Sort.html +5 -3
  37. data/docs/JsonapiCompliable/SerializableTempId.html +1 -1
  38. data/docs/JsonapiCompliable/Sideload.html +1 -1
  39. data/docs/JsonapiCompliable/Stats.html +1 -1
  40. data/docs/JsonapiCompliable/Stats/DSL.html +1 -1
  41. data/docs/JsonapiCompliable/Stats/Payload.html +1 -1
  42. data/docs/JsonapiCompliable/Util.html +1 -1
  43. data/docs/JsonapiCompliable/Util/FieldParams.html +1 -1
  44. data/docs/JsonapiCompliable/Util/Hash.html +1 -1
  45. data/docs/JsonapiCompliable/Util/IncludeParams.html +1 -1
  46. data/docs/JsonapiCompliable/Util/Persistence.html +1 -1
  47. data/docs/JsonapiCompliable/Util/RelationshipPayload.html +1 -1
  48. data/docs/JsonapiCompliable/Util/RenderOptions.html +16 -2
  49. data/docs/JsonapiCompliable/Util/Sideload.html +1 -1
  50. data/docs/JsonapiCompliable/Util/ValidationResponse.html +1 -1
  51. data/docs/_index.html +28 -7
  52. data/docs/class_list.html +1 -1
  53. data/docs/file.README.html +41 -1
  54. data/docs/index.html +41 -1
  55. data/docs/method_list.html +281 -209
  56. data/docs/top-level-namespace.html +1 -1
  57. data/lib/jsonapi_compliable/scope.rb +2 -0
  58. data/lib/jsonapi_compliable/version.rb +1 -1
  59. metadata +5 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a808d8ba133336b8d4064dfd4e4419edf13f04b8
4
- data.tar.gz: c445ae7db757752acc75d9f3116b9f4d0a53dc81
3
+ metadata.gz: fc2ca5a3781405bc32a96e5c3b4eaec16191c5cf
4
+ data.tar.gz: 3d27bc6e53dd40faa3097c5b9a86bb7c52b58a3f
5
5
  SHA512:
6
- metadata.gz: 93690be0d49a991b134bd235c458c2fa381802d93b488f7e910cb481f0087b06752ef3141fdf446e989222bcc483703d21fd7cd1abe021ce5037bf71b3d3bbee
7
- data.tar.gz: db0bac90c114efc88aa64347304a83adf035a76e461157cfa0a59eb83fc72d23da5bf43fabea7373b67c880aa0028dc7ae5a06e9033dd16a40467da5e5a34080
6
+ metadata.gz: bc1e4b62b63fc12c1b47fbda2dad76c342d59b56cf8a811a9a6c1b1b28a186443676c668ab8df62f45ec9b75d8cdf12a2ed74d4ca1916514caac0090f6976cf0
7
+ data.tar.gz: 1cd3d205a104c17959f65cbbbb7e208ce056f41c72535a2c4e478f0abb751b0d016e7c3610b97e9150918ba7d4f1d96aaa2b27c8c49ddfa2809db39d659fd6ed
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 14:55:06 2017 by
108
+ Generated on Thu May 3 15:52:17 2018 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>
@@ -163,37 +163,47 @@
163
163
  <pre class="lines">
164
164
 
165
165
 
166
- 42
167
- 43
168
- 44
169
- 45
170
- 46
171
- 47
172
- 48
173
- 49
174
- 50
175
- 51
176
- 52
177
- 53
178
- 54
179
- 55</pre>
166
+ 19
167
+ 20
168
+ 21
169
+ 22
170
+ 23
171
+ 24
172
+ 25
173
+ 26
174
+ 27
175
+ 28
176
+ 29
177
+ 30
178
+ 31
179
+ 32
180
+ 33
181
+ 34
182
+ 35
183
+ 36
184
+ 37</pre>
180
185
  </td>
181
186
  <td>
182
- <pre class="code"><span class="info file"># File 'lib/generators/jsonapi/resource_generator.rb', line 42</span>
187
+ <pre class="code"><span class="info file"># File 'lib/generators/jsonapi/resource_generator.rb', line 19</span>
183
188
 
184
189
  <span class='kw'>def</span> <span class='id identifier rubyid_copy_resource_file'>copy_resource_file</span>
185
190
  <span class='kw'>unless</span> <span class='id identifier rubyid_model_klass'>model_klass</span>
186
191
  <span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>You must define a </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_class_name'>class_name</span><span class='embexpr_end'>}</span><span class='tstring_content'> model before generating the corresponding resource.</span><span class='tstring_end'>&quot;</span></span>
187
192
  <span class='kw'>end</span>
188
193
 
189
- <span class='id identifier rubyid_generate_controller'>generate_controller</span> <span class='kw'>unless</span> <span class='id identifier rubyid_omit_controller?'>omit_controller?</span>
190
- <span class='id identifier rubyid_generate_serializer'>generate_serializer</span> <span class='kw'>unless</span> <span class='id identifier rubyid_omit_serializer?'>omit_serializer?</span>
194
+ <span class='id identifier rubyid_generate_controller'>generate_controller</span>
195
+ <span class='id identifier rubyid_generate_serializer'>generate_serializer</span>
191
196
  <span class='id identifier rubyid_generate_application_resource'>generate_application_resource</span> <span class='kw'>unless</span> <span class='id identifier rubyid_application_resource_defined?'>application_resource_defined?</span>
192
- <span class='id identifier rubyid_generate_spec_payload'>generate_spec_payload</span> <span class='kw'>unless</span> <span class='id identifier rubyid_omit_spec_payload?'>omit_spec_payload?</span>
193
- <span class='id identifier rubyid_generate_strong_resource'>generate_strong_resource</span> <span class='kw'>unless</span> <span class='id identifier rubyid_omit_strong_resource?'>omit_strong_resource?</span>
194
- <span class='id identifier rubyid_generate_route'>generate_route</span> <span class='kw'>unless</span> <span class='id identifier rubyid_omit_route?'>omit_route?</span>
195
- <span class='id identifier rubyid_generate_tests'>generate_tests</span> <span class='kw'>unless</span> <span class='id identifier rubyid_omit_tests?'>omit_tests?</span>
197
+ <span class='id identifier rubyid_generate_spec_payload'>generate_spec_payload</span>
198
+
199
+ <span class='kw'>if</span> <span class='id identifier rubyid_actions?'>actions?</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>create</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>update</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
200
+ <span class='id identifier rubyid_generate_strong_resource'>generate_strong_resource</span>
201
+ <span class='kw'>end</span>
202
+
203
+ <span class='id identifier rubyid_generate_route'>generate_route</span>
204
+ <span class='id identifier rubyid_generate_tests'>generate_tests</span>
196
205
  <span class='id identifier rubyid_generate_resource'>generate_resource</span>
206
+ <span class='id identifier rubyid_generate_swagger'>generate_swagger</span> <span class='kw'>if</span> <span class='id identifier rubyid_docs_controller?'>docs_controller?</span>
197
207
  <span class='kw'>end</span></pre>
198
208
  </td>
199
209
  </tr>
@@ -205,7 +215,7 @@
205
215
  </div>
206
216
 
207
217
  <div id="footer">
208
- Generated on Tue Oct 3 14:55:08 2017 by
218
+ Generated on Thu May 3 15:52:19 2018 by
209
219
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
210
220
  0.9.9 (ruby-2.3.0).
211
221
  </div>
@@ -78,14 +78,26 @@
78
78
 
79
79
  <dl>
80
80
  <dt>Defined in:</dt>
81
- <dd>lib/jsonapi_compliable.rb<span class="defines">,<br />
82
- lib/jsonapi_compliable/base.rb,<br /> lib/jsonapi_compliable/query.rb,<br /> lib/jsonapi_compliable/rails.rb,<br /> lib/jsonapi_compliable/scope.rb,<br /> lib/jsonapi_compliable/errors.rb,<br /> lib/jsonapi_compliable/version.rb,<br /> lib/jsonapi_compliable/resource.rb,<br /> lib/jsonapi_compliable/sideload.rb,<br /> lib/jsonapi_compliable/stats/dsl.rb,<br /> lib/jsonapi_compliable/util/hash.rb,<br /> lib/jsonapi_compliable/scoping/base.rb,<br /> lib/jsonapi_compliable/scoping/sort.rb,<br /> lib/jsonapi_compliable/adapters/null.rb,<br /> lib/jsonapi_compliable/stats/payload.rb,<br /> lib/jsonapi_compliable/util/sideload.rb,<br /> lib/jsonapi_compliable/scoping/filter.rb,<br /> lib/jsonapi_compliable/scoping/paginate.rb,<br /> lib/jsonapi_compliable/adapters/abstract.rb,<br /> lib/jsonapi_compliable/util/field_params.rb,<br /> lib/jsonapi_compliable/extensions/temp_id.rb,<br /> lib/jsonapi_compliable/scoping/filterable.rb,<br /> lib/jsonapi_compliable/util/include_params.rb,<br /> lib/jsonapi_compliable/util/render_options.rb,<br /> lib/jsonapi_compliable/scoping/extra_fields.rb,<br /> lib/jsonapi_compliable/adapters/active_record.rb,<br /> lib/jsonapi_compliable/scoping/default_filter.rb,<br /> lib/jsonapi_compliable/util/relationship_payload.rb,<br /> lib/jsonapi_compliable/extensions/extra_attribute.rb,<br /> lib/jsonapi_compliable/extensions/boolean_attribute.rb,<br /> lib/jsonapi_compliable/adapters/active_record_sideloading.rb</span>
81
+ <dd>lib/jsonapi_compliable/configuration.rb<span class="defines">,<br />
82
+ lib/jsonapi_compliable.rb,<br /> lib/jsonapi_compliable/base.rb,<br /> lib/jsonapi_compliable/query.rb,<br /> lib/jsonapi_compliable/rails.rb,<br /> lib/jsonapi_compliable/scope.rb,<br /> lib/jsonapi_compliable/errors.rb,<br /> lib/jsonapi_compliable/version.rb,<br /> lib/jsonapi_compliable/resource.rb,<br /> lib/jsonapi_compliable/sideload.rb,<br /> lib/jsonapi_compliable/stats/dsl.rb,<br /> lib/jsonapi_compliable/util/hash.rb,<br /> lib/jsonapi_compliable/scoping/base.rb,<br /> lib/jsonapi_compliable/scoping/sort.rb,<br /> lib/jsonapi_compliable/adapters/null.rb,<br /> lib/jsonapi_compliable/stats/payload.rb,<br /> lib/jsonapi_compliable/util/sideload.rb,<br /> lib/jsonapi_compliable/scoping/filter.rb,<br /> lib/jsonapi_compliable/scoping/paginate.rb,<br /> lib/jsonapi_compliable/adapters/abstract.rb,<br /> lib/jsonapi_compliable/util/field_params.rb,<br /> lib/jsonapi_compliable/extensions/temp_id.rb,<br /> lib/jsonapi_compliable/scoping/filterable.rb,<br /> lib/jsonapi_compliable/util/include_params.rb,<br /> lib/jsonapi_compliable/util/render_options.rb,<br /> lib/jsonapi_compliable/scoping/extra_fields.rb,<br /> lib/jsonapi_compliable/adapters/active_record.rb,<br /> lib/jsonapi_compliable/scoping/default_filter.rb,<br /> lib/jsonapi_compliable/util/relationship_payload.rb,<br /> lib/jsonapi_compliable/extensions/extra_attribute.rb,<br /> lib/jsonapi_compliable/extensions/boolean_attribute.rb,<br /> lib/jsonapi_compliable/adapters/active_record_sideloading.rb</span>
83
83
  </dd>
84
84
  </dl>
85
85
 
86
86
  </div>
87
87
 
88
- <h2>Defined Under Namespace</h2>
88
+ <h2>Overview</h2><div class="docstring">
89
+ <div class="discussion">
90
+
91
+ <p><a
92
+ href="https://robots.thoughtbot.com/mygem-configure-block">robots.thoughtbot.com/mygem-configure-block</a></p>
93
+
94
+
95
+ </div>
96
+ </div>
97
+ <div class="tags">
98
+
99
+
100
+ </div><h2>Defined Under Namespace</h2>
89
101
  <p class="children">
90
102
 
91
103
 
@@ -93,7 +105,7 @@
93
105
 
94
106
 
95
107
 
96
- <strong class="classes">Classes:</strong> <span class='object_link'><a href="JsonapiCompliable/Deserializer.html" title="JsonapiCompliable::Deserializer (class)">Deserializer</a></span>, <span class='object_link'><a href="JsonapiCompliable/Query.html" title="JsonapiCompliable::Query (class)">Query</a></span>, <span class='object_link'><a href="JsonapiCompliable/Resource.html" title="JsonapiCompliable::Resource (class)">Resource</a></span>, <span class='object_link'><a href="JsonapiCompliable/Scope.html" title="JsonapiCompliable::Scope (class)">Scope</a></span>, <span class='object_link'><a href="JsonapiCompliable/Sideload.html" title="JsonapiCompliable::Sideload (class)">Sideload</a></span>
108
+ <strong class="classes">Classes:</strong> <span class='object_link'><a href="JsonapiCompliable/Configuration.html" title="JsonapiCompliable::Configuration (class)">Configuration</a></span>, <span class='object_link'><a href="JsonapiCompliable/Deserializer.html" title="JsonapiCompliable::Deserializer (class)">Deserializer</a></span>, <span class='object_link'><a href="JsonapiCompliable/Query.html" title="JsonapiCompliable::Query (class)">Query</a></span>, <span class='object_link'><a href="JsonapiCompliable/Resource.html" title="JsonapiCompliable::Resource (class)">Resource</a></span>, <span class='object_link'><a href="JsonapiCompliable/Scope.html" title="JsonapiCompliable::Scope (class)">Scope</a></span>, <span class='object_link'><a href="JsonapiCompliable/Sideload.html" title="JsonapiCompliable::Sideload (class)">Sideload</a></span>
97
109
 
98
110
 
99
111
  </p>
@@ -104,7 +116,7 @@
104
116
  <dt id="VERSION-constant" class="">VERSION =
105
117
 
106
118
  </dt>
107
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>0.10.0</span><span class='tstring_end'>&quot;</span></span></pre></dd>
119
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>0.11.4</span><span class='tstring_end'>&quot;</span></span></pre></dd>
108
120
 
109
121
  </dl>
110
122
 
@@ -125,6 +137,50 @@
125
137
  <li class="public ">
126
138
  <span class="summary_signature">
127
139
 
140
+ <a href="#config-class_method" title="config (class method)">.<strong>config</strong> &#x21d2; Object </a>
141
+
142
+
143
+
144
+ </span>
145
+
146
+
147
+
148
+
149
+
150
+
151
+
152
+
153
+
154
+ <span class="summary_desc"><div class='inline'></div></span>
155
+
156
+ </li>
157
+
158
+
159
+ <li class="public ">
160
+ <span class="summary_signature">
161
+
162
+ <a href="#configure-class_method" title="configure (class method)">.<strong>configure</strong> {|config| ... } &#x21d2; Object </a>
163
+
164
+
165
+
166
+ </span>
167
+
168
+
169
+
170
+
171
+
172
+
173
+
174
+
175
+
176
+ <span class="summary_desc"><div class='inline'></div></span>
177
+
178
+ </li>
179
+
180
+
181
+ <li class="public ">
182
+ <span class="summary_signature">
183
+
128
184
  <a href="#context-class_method" title="context (class method)">.<strong>context</strong> &#x21d2; Object </a>
129
185
 
130
186
 
@@ -220,7 +276,106 @@
220
276
 
221
277
 
222
278
  <div class="method_details first">
223
- <h3 class="signature first" id="context-class_method">
279
+ <h3 class="signature first" id="config-class_method">
280
+
281
+ .<strong>config</strong> &#x21d2; <tt>Object</tt>
282
+
283
+
284
+
285
+
286
+
287
+ </h3><table class="source_code">
288
+ <tr>
289
+ <td>
290
+ <pre class="lines">
291
+
292
+
293
+ 69
294
+ 70
295
+ 71</pre>
296
+ </td>
297
+ <td>
298
+ <pre class="code"><span class="info file"># File 'lib/jsonapi_compliable.rb', line 69</span>
299
+
300
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_config'>config</span>
301
+ <span class='ivar'>@config</span> <span class='op'>||=</span> <span class='const'><span class='object_link'><a href="JsonapiCompliable/Configuration.html" title="JsonapiCompliable::Configuration (class)">Configuration</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="JsonapiCompliable/Configuration.html#initialize-instance_method" title="JsonapiCompliable::Configuration#initialize (method)">new</a></span></span>
302
+ <span class='kw'>end</span></pre>
303
+ </td>
304
+ </tr>
305
+ </table>
306
+ </div>
307
+
308
+ <div class="method_details ">
309
+ <h3 class="signature " id="configure-class_method">
310
+
311
+ .<strong>configure</strong> {|config| ... } &#x21d2; <tt>Object</tt>
312
+
313
+
314
+
315
+
316
+
317
+ </h3><div class="docstring">
318
+ <div class="discussion">
319
+
320
+
321
+ </div>
322
+ </div>
323
+ <div class="tags">
324
+
325
+ <div class="examples">
326
+ <p class="tag_title">Examples:</p>
327
+
328
+
329
+ <pre class="example code"><code><span class='const'><span class='object_link'><a href="" title="JsonapiCompliable (module)">JsonapiCompliable</a></span></span><span class='period'>.</span><span class='id identifier rubyid_configure'>configure</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_c'>c</span><span class='op'>|</span>
330
+ <span class='id identifier rubyid_c'>c</span><span class='period'>.</span><span class='id identifier rubyid_raise_on_missing_sideload'>raise_on_missing_sideload</span> <span class='op'>=</span> <span class='kw'>false</span>
331
+ <span class='kw'>end</span></code></pre>
332
+
333
+ </div>
334
+
335
+ <p class="tag_title">Yields:</p>
336
+ <ul class="yield">
337
+
338
+ <li>
339
+
340
+
341
+ <span class='type'>(<tt><span class='object_link'><a href="#config-class_method" title="JsonapiCompliable.config (method)">config</a></span></tt>)</span>
342
+
343
+
344
+
345
+ </li>
346
+
347
+ </ul>
348
+
349
+ <p class="tag_title">See Also:</p>
350
+ <ul class="see">
351
+
352
+ <li><span class='object_link'><a href="JsonapiCompliable/Configuration.html" title="JsonapiCompliable::Configuration (class)">Configuration</a></span></li>
353
+
354
+ </ul>
355
+
356
+ </div><table class="source_code">
357
+ <tr>
358
+ <td>
359
+ <pre class="lines">
360
+
361
+
362
+ 79
363
+ 80
364
+ 81</pre>
365
+ </td>
366
+ <td>
367
+ <pre class="code"><span class="info file"># File 'lib/jsonapi_compliable.rb', line 79</span>
368
+
369
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_configure'>configure</span>
370
+ <span class='kw'>yield</span> <span class='id identifier rubyid_config'>config</span>
371
+ <span class='kw'>end</span></pre>
372
+ </td>
373
+ </tr>
374
+ </table>
375
+ </div>
376
+
377
+ <div class="method_details ">
378
+ <h3 class="signature " id="context-class_method">
224
379
 
225
380
  .<strong>context</strong> &#x21d2; <tt>Object</tt>
226
381
 
@@ -247,12 +402,12 @@
247
402
  <pre class="lines">
248
403
 
249
404
 
250
- 48
251
405
  49
252
- 50</pre>
406
+ 50
407
+ 51</pre>
253
408
  </td>
254
409
  <td>
255
- <pre class="code"><span class="info file"># File 'lib/jsonapi_compliable.rb', line 48</span>
410
+ <pre class="code"><span class="info file"># File 'lib/jsonapi_compliable.rb', line 49</span>
256
411
 
257
412
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_context'>context</span>
258
413
  <span class='const'>Thread</span><span class='period'>.</span><span class='id identifier rubyid_current'>current</span><span class='lbracket'>[</span><span class='symbol'>:context</span><span class='rbracket'>]</span> <span class='op'>||=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
@@ -290,12 +445,12 @@
290
445
  <pre class="lines">
291
446
 
292
447
 
293
- 53
294
448
  54
295
- 55</pre>
449
+ 55
450
+ 56</pre>
296
451
  </td>
297
452
  <td>
298
- <pre class="code"><span class="info file"># File 'lib/jsonapi_compliable.rb', line 53</span>
453
+ <pre class="code"><span class="info file"># File 'lib/jsonapi_compliable.rb', line 54</span>
299
454
 
300
455
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_context='>context=</span><span class='lparen'>(</span><span class='id identifier rubyid_val'>val</span><span class='rparen'>)</span>
301
456
  <span class='const'>Thread</span><span class='period'>.</span><span class='id identifier rubyid_current'>current</span><span class='lbracket'>[</span><span class='symbol'>:context</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_val'>val</span>
@@ -320,14 +475,14 @@
320
475
  <pre class="lines">
321
476
 
322
477
 
323
- 41
324
478
  42
325
479
  43
326
480
  44
327
- 45</pre>
481
+ 45
482
+ 46</pre>
328
483
  </td>
329
484
  <td>
330
- <pre class="code"><span class="info file"># File 'lib/jsonapi_compliable.rb', line 41</span>
485
+ <pre class="code"><span class="info file"># File 'lib/jsonapi_compliable.rb', line 42</span>
331
486
 
332
487
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_included'>included</span><span class='lparen'>(</span><span class='id identifier rubyid_klass'>klass</span><span class='rparen'>)</span>
333
488
  <span class='id identifier rubyid_klass'>klass</span><span class='period'>.</span><span class='id identifier rubyid_instance_eval'>instance_eval</span> <span class='kw'>do</span>
@@ -367,7 +522,6 @@
367
522
  <pre class="lines">
368
523
 
369
524
 
370
- 58
371
525
  59
372
526
  60
373
527
  61
@@ -375,10 +529,11 @@
375
529
  63
376
530
  64
377
531
  65
378
- 66</pre>
532
+ 66
533
+ 67</pre>
379
534
  </td>
380
535
  <td>
381
- <pre class="code"><span class="info file"># File 'lib/jsonapi_compliable.rb', line 58</span>
536
+ <pre class="code"><span class="info file"># File 'lib/jsonapi_compliable.rb', line 59</span>
382
537
 
383
538
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_with_context'>with_context</span><span class='lparen'>(</span><span class='id identifier rubyid_obj'>obj</span><span class='comma'>,</span> <span class='id identifier rubyid_namespace'>namespace</span><span class='rparen'>)</span>
384
539
  <span class='kw'>begin</span>
@@ -399,7 +554,7 @@
399
554
  </div>
400
555
 
401
556
  <div id="footer">
402
- Generated on Tue Oct 3 14:55:06 2017 by
557
+ Generated on Thu May 3 15:52:17 2018 by
403
558
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
404
559
  0.9.9 (ruby-2.3.0).
405
560
  </div>
@@ -109,7 +109,7 @@
109
109
  </div>
110
110
 
111
111
  <div id="footer">
112
- Generated on Tue Oct 3 14:55:06 2017 by
112
+ Generated on Thu May 3 15:52:17 2018 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>
@@ -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 14:55:08 2017 by
2454
+ Generated on Thu May 3 15:52:19 2018 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>
@@ -578,18 +578,28 @@ firing a query. Otherwise, simple assignment will do</p>
578
578
  80
579
579
  81
580
580
  82
581
- 83</pre>
581
+ 83
582
+ 84
583
+ 85
584
+ 86
585
+ 87
586
+ 88</pre>
582
587
  </td>
583
588
  <td>
584
589
  <pre class="code"><span class="info file"># File 'lib/jsonapi_compliable/adapters/active_record.rb', line 74</span>
585
590
 
586
591
  <span class='kw'>def</span> <span class='id identifier rubyid_associate'>associate</span><span class='lparen'>(</span><span class='id identifier rubyid_parent'>parent</span><span class='comma'>,</span> <span class='id identifier rubyid_child'>child</span><span class='comma'>,</span> <span class='id identifier rubyid_association_name'>association_name</span><span class='comma'>,</span> <span class='id identifier rubyid_association_type'>association_type</span><span class='rparen'>)</span>
587
592
  <span class='kw'>if</span> <span class='id identifier rubyid_association_type'>association_type</span> <span class='op'>==</span> <span class='symbol'>:has_many</span>
588
- <span class='id identifier rubyid_parent'>parent</span><span class='period'>.</span><span class='id identifier rubyid_association'>association</span><span class='lparen'>(</span><span class='id identifier rubyid_association_name'>association_name</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_loaded!'>loaded!</span>
589
- <span class='id identifier rubyid_parent'>parent</span><span class='period'>.</span><span class='id identifier rubyid_association'>association</span><span class='lparen'>(</span><span class='id identifier rubyid_association_name'>association_name</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_add_to_target'>add_to_target</span><span class='lparen'>(</span><span class='id identifier rubyid_child'>child</span><span class='comma'>,</span> <span class='symbol'>:skip_callbacks</span><span class='rparen'>)</span>
593
+ <span class='id identifier rubyid_associate_many'>associate_many</span><span class='lparen'>(</span><span class='id identifier rubyid_parent'>parent</span><span class='comma'>,</span> <span class='id identifier rubyid_child'>child</span><span class='comma'>,</span> <span class='id identifier rubyid_association_name'>association_name</span><span class='rparen'>)</span>
590
594
  <span class='kw'>elsif</span> <span class='id identifier rubyid_association_type'>association_type</span> <span class='op'>==</span> <span class='symbol'>:habtm</span>
591
- <span class='id identifier rubyid_parent'>parent</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='id identifier rubyid_association_name'>association_name</span><span class='rparen'>)</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_child'>child</span>
592
- <span class='kw'>else</span>
595
+ <span class='kw'>if</span> <span class='id identifier rubyid_parent'>parent</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='id identifier rubyid_association_name'>association_name</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_exists?'>exists?</span><span class='lparen'>(</span><span class='id identifier rubyid_child'>child</span><span class='period'>.</span><span class='id identifier rubyid_id'>id</span><span class='rparen'>)</span>
596
+ <span class='id identifier rubyid_associate_many'>associate_many</span><span class='lparen'>(</span><span class='id identifier rubyid_parent'>parent</span><span class='comma'>,</span> <span class='id identifier rubyid_child'>child</span><span class='comma'>,</span> <span class='id identifier rubyid_association_name'>association_name</span><span class='rparen'>)</span>
597
+ <span class='kw'>else</span>
598
+ <span class='id identifier rubyid_parent'>parent</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='id identifier rubyid_association_name'>association_name</span><span class='rparen'>)</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_child'>child</span>
599
+ <span class='kw'>end</span>
600
+ <span class='kw'>elsif</span> <span class='id identifier rubyid_association_type'>association_type</span> <span class='op'>==</span> <span class='symbol'>:has_one</span>
601
+ <span class='id identifier rubyid_parent'>parent</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_association_name'>association_name</span><span class='embexpr_end'>}</span><span class='tstring_content'>=</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_child'>child</span><span class='rparen'>)</span>
602
+ <span class='kw'>elsif</span>
593
603
  <span class='id identifier rubyid_child'>child</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_association_name'>association_name</span><span class='embexpr_end'>}</span><span class='tstring_content'>=</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_parent'>parent</span><span class='rparen'>)</span>
594
604
  <span class='kw'>end</span>
595
605
  <span class='kw'>end</span></pre>
@@ -928,14 +938,14 @@ firing a query. Otherwise, simple assignment will do</p>
928
938
  <pre class="lines">
929
939
 
930
940
 
931
- 97
932
- 98
933
- 99
934
- 100
935
- 101</pre>
941
+ 102
942
+ 103
943
+ 104
944
+ 105
945
+ 106</pre>
936
946
  </td>
937
947
  <td>
938
- <pre class="code"><span class="info file"># File 'lib/jsonapi_compliable/adapters/active_record.rb', line 97</span>
948
+ <pre class="code"><span class="info file"># File 'lib/jsonapi_compliable/adapters/active_record.rb', line 102</span>
939
949
 
940
950
  <span class='kw'>def</span> <span class='id identifier rubyid_create'>create</span><span class='lparen'>(</span><span class='id identifier rubyid_model_class'>model_class</span><span class='comma'>,</span> <span class='id identifier rubyid_create_params'>create_params</span><span class='rparen'>)</span>
941
951
  <span class='id identifier rubyid_instance'>instance</span> <span class='op'>=</span> <span class='id identifier rubyid_model_class'>model_class</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_create_params'>create_params</span><span class='rparen'>)</span>
@@ -1050,14 +1060,14 @@ firing a query. Otherwise, simple assignment will do</p>
1050
1060
  <pre class="lines">
1051
1061
 
1052
1062
 
1053
- 111
1054
- 112
1055
- 113
1056
- 114
1057
- 115</pre>
1063
+ 116
1064
+ 117
1065
+ 118
1066
+ 119
1067
+ 120</pre>
1058
1068
  </td>
1059
1069
  <td>
1060
- <pre class="code"><span class="info file"># File 'lib/jsonapi_compliable/adapters/active_record.rb', line 111</span>
1070
+ <pre class="code"><span class="info file"># File 'lib/jsonapi_compliable/adapters/active_record.rb', line 116</span>
1061
1071
 
1062
1072
  <span class='kw'>def</span> <span class='id identifier rubyid_destroy'>destroy</span><span class='lparen'>(</span><span class='id identifier rubyid_model_class'>model_class</span><span class='comma'>,</span> <span class='id identifier rubyid_id'>id</span><span class='rparen'>)</span>
1063
1073
  <span class='id identifier rubyid_instance'>instance</span> <span class='op'>=</span> <span class='id identifier rubyid_model_class'>model_class</span><span class='period'>.</span><span class='id identifier rubyid_find'>find</span><span class='lparen'>(</span><span class='id identifier rubyid_id'>id</span><span class='rparen'>)</span>
@@ -1103,16 +1113,16 @@ key that can be null&#39;d. Instead, go through the ActiveRecord API.</p>
1103
1113
  <pre class="lines">
1104
1114
 
1105
1115
 
1106
- 88
1107
- 89
1108
- 90
1109
- 91
1110
- 92
1111
1116
  93
1112
- 94</pre>
1117
+ 94
1118
+ 95
1119
+ 96
1120
+ 97
1121
+ 98
1122
+ 99</pre>
1113
1123
  </td>
1114
1124
  <td>
1115
- <pre class="code"><span class="info file"># File 'lib/jsonapi_compliable/adapters/active_record.rb', line 88</span>
1125
+ <pre class="code"><span class="info file"># File 'lib/jsonapi_compliable/adapters/active_record.rb', line 93</span>
1116
1126
 
1117
1127
  <span class='kw'>def</span> <span class='id identifier rubyid_disassociate'>disassociate</span><span class='lparen'>(</span><span class='id identifier rubyid_parent'>parent</span><span class='comma'>,</span> <span class='id identifier rubyid_child'>child</span><span class='comma'>,</span> <span class='id identifier rubyid_association_name'>association_name</span><span class='comma'>,</span> <span class='id identifier rubyid_association_type'>association_type</span><span class='rparen'>)</span>
1118
1128
  <span class='kw'>if</span> <span class='id identifier rubyid_association_type'>association_type</span> <span class='op'>==</span> <span class='symbol'>:habtm</span>
@@ -2209,14 +2219,14 @@ Sideload#allow_sideload</p>
2209
2219
  <pre class="lines">
2210
2220
 
2211
2221
 
2212
- 104
2213
- 105
2214
- 106
2215
- 107
2216
- 108</pre>
2222
+ 109
2223
+ 110
2224
+ 111
2225
+ 112
2226
+ 113</pre>
2217
2227
  </td>
2218
2228
  <td>
2219
- <pre class="code"><span class="info file"># File 'lib/jsonapi_compliable/adapters/active_record.rb', line 104</span>
2229
+ <pre class="code"><span class="info file"># File 'lib/jsonapi_compliable/adapters/active_record.rb', line 109</span>
2220
2230
 
2221
2231
  <span class='kw'>def</span> <span class='id identifier rubyid_update'>update</span><span class='lparen'>(</span><span class='id identifier rubyid_model_class'>model_class</span><span class='comma'>,</span> <span class='id identifier rubyid_update_params'>update_params</span><span class='rparen'>)</span>
2222
2232
  <span class='id identifier rubyid_instance'>instance</span> <span class='op'>=</span> <span class='id identifier rubyid_model_class'>model_class</span><span class='period'>.</span><span class='id identifier rubyid_find'>find</span><span class='lparen'>(</span><span class='id identifier rubyid_update_params'>update_params</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='symbol'>:id</span><span class='rparen'>)</span><span class='rparen'>)</span>
@@ -2233,7 +2243,7 @@ Sideload#allow_sideload</p>
2233
2243
  </div>
2234
2244
 
2235
2245
  <div id="footer">
2236
- Generated on Tue Oct 3 14:55:08 2017 by
2246
+ Generated on Thu May 3 15:52:19 2018 by
2237
2247
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2238
2248
  0.9.9 (ruby-2.3.0).
2239
2249
  </div>