compony 0.10.2 → 0.11.0
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/CHANGELOG.md +10 -0
- data/Gemfile.lock +1 -1
- data/VERSION +1 -1
- data/compony.gemspec +3 -3
- data/doc/ComponentGenerator.html +1 -1
- data/doc/Components.html +1 -1
- data/doc/ComponentsGenerator.html +1 -1
- data/doc/Compony/Component.html +1 -1
- data/doc/Compony/ComponentMixins/Default/Labelling.html +1 -1
- data/doc/Compony/ComponentMixins/Default/Standalone/ResourcefulVerbDsl.html +1 -1
- data/doc/Compony/ComponentMixins/Default/Standalone/StandaloneDsl.html +1 -1
- data/doc/Compony/ComponentMixins/Default/Standalone/VerbDsl.html +1 -1
- data/doc/Compony/ComponentMixins/Default/Standalone.html +1 -1
- data/doc/Compony/ComponentMixins/Default.html +1 -1
- data/doc/Compony/ComponentMixins/Resourceful.html +25 -94
- data/doc/Compony/ComponentMixins.html +1 -1
- data/doc/Compony/Components/Buttons/CssButton.html +1 -1
- data/doc/Compony/Components/Buttons/Link.html +1 -1
- data/doc/Compony/Components/Buttons.html +1 -1
- data/doc/Compony/Components/Destroy.html +2 -2
- data/doc/Compony/Components/Edit.html +2 -2
- data/doc/Compony/Components/Form.html +1 -1
- data/doc/Compony/Components/Index.html +2 -2
- data/doc/Compony/Components/List.html +2 -2
- data/doc/Compony/Components/New.html +2 -2
- data/doc/Compony/Components/Show.html +47 -22
- data/doc/Compony/Components/WithForm.html +1 -1
- data/doc/Compony/Components.html +1 -1
- data/doc/Compony/ControllerMixin.html +1 -1
- data/doc/Compony/Engine.html +1 -1
- data/doc/Compony/Intent.html +2 -2
- data/doc/Compony/ManageIntentsDsl.html +1 -1
- data/doc/Compony/MethodAccessibleHash.html +1 -1
- data/doc/Compony/ModelFields/Anchormodel.html +1 -1
- data/doc/Compony/ModelFields/Association.html +1 -1
- data/doc/Compony/ModelFields/Attachment.html +1 -1
- data/doc/Compony/ModelFields/Base.html +1 -1
- data/doc/Compony/ModelFields/Boolean.html +1 -1
- data/doc/Compony/ModelFields/Color.html +1 -1
- data/doc/Compony/ModelFields/Currency.html +1 -1
- data/doc/Compony/ModelFields/Date.html +1 -1
- data/doc/Compony/ModelFields/Datetime.html +1 -1
- data/doc/Compony/ModelFields/Decimal.html +1 -1
- data/doc/Compony/ModelFields/Email.html +1 -1
- data/doc/Compony/ModelFields/Float.html +1 -1
- data/doc/Compony/ModelFields/Integer.html +1 -1
- data/doc/Compony/ModelFields/Percentage.html +1 -1
- data/doc/Compony/ModelFields/Phone.html +1 -1
- data/doc/Compony/ModelFields/RichText.html +1 -1
- data/doc/Compony/ModelFields/String.html +1 -1
- data/doc/Compony/ModelFields/Text.html +1 -1
- data/doc/Compony/ModelFields/Time.html +1 -1
- data/doc/Compony/ModelFields/Url.html +1 -1
- data/doc/Compony/ModelFields.html +1 -1
- data/doc/Compony/ModelMixin.html +1 -1
- data/doc/Compony/NaturalOrdering.html +1 -1
- data/doc/Compony/RequestContext.html +1 -1
- data/doc/Compony/Version.html +1 -1
- data/doc/Compony/ViewHelpers.html +1 -1
- data/doc/Compony/VirtualModel.html +1 -1
- data/doc/Compony.html +1 -1
- data/doc/ComponyController.html +1 -1
- data/doc/_index.html +1 -1
- data/doc/file.README.html +1 -1
- data/doc/guide/resourceful.md +1 -11
- data/doc/index.html +1 -1
- data/doc/method_list.html +66 -74
- data/doc/top-level-namespace.html +1 -1
- data/lib/compony/component_mixins/resourceful.rb +0 -7
- data/lib/compony/components/index.rb +1 -1
- data/lib/compony/components/show.rb +3 -1
- data/lib/compony/intent.rb +1 -1
- metadata +2 -2
|
@@ -118,6 +118,31 @@
|
|
|
118
118
|
|
|
119
119
|
|
|
120
120
|
</div>
|
|
121
|
+
|
|
122
|
+
<h2>
|
|
123
|
+
Constant Summary
|
|
124
|
+
<small><a href="#" class="constants_summary_toggle">collapse</a></small>
|
|
125
|
+
</h2>
|
|
126
|
+
|
|
127
|
+
<dl class="constants">
|
|
128
|
+
|
|
129
|
+
<dt id="INT_OR_UUID_REGEX-constant" class="">INT_OR_UUID_REGEX =
|
|
130
|
+
<div class="docstring">
|
|
131
|
+
<div class="discussion">
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
</div>
|
|
135
|
+
</div>
|
|
136
|
+
<div class="tags">
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
</div>
|
|
140
|
+
</dt>
|
|
141
|
+
<dd><pre class="code"><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>(?:\d+|[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})</span><span class='regexp_end'>/</span></span></pre></dd>
|
|
142
|
+
|
|
143
|
+
</dl>
|
|
144
|
+
|
|
145
|
+
|
|
121
146
|
|
|
122
147
|
|
|
123
148
|
|
|
@@ -277,7 +302,7 @@
|
|
|
277
302
|
|
|
278
303
|
|
|
279
304
|
<h3 class="inherited">Methods included from <span class='object_link'><a href="../ComponentMixins/Resourceful.html" title="Compony::ComponentMixins::Resourceful (module)">Compony::ComponentMixins::Resourceful</a></span></h3>
|
|
280
|
-
<p class="inherited"><span class='object_link'><a href="../ComponentMixins/Resourceful.html#after_assign_attributes-instance_method" title="Compony::ComponentMixins::Resourceful#after_assign_attributes (method)">#after_assign_attributes</a></span>, <span class='object_link'><a href="../ComponentMixins/Resourceful.html#after_load_data-instance_method" title="Compony::ComponentMixins::Resourceful#after_load_data (method)">#after_load_data</a></span>, <span class='object_link'><a href="../ComponentMixins/Resourceful.html#assign_attributes-instance_method" title="Compony::ComponentMixins::Resourceful#assign_attributes (method)">#assign_attributes</a></span>, <span class='object_link'><a href="../ComponentMixins/Resourceful.html#data_class-instance_method" title="Compony::ComponentMixins::Resourceful#data_class (method)">#data_class</a></span>, <span class='object_link'><a href="../ComponentMixins/Resourceful.html#load_data-instance_method" title="Compony::ComponentMixins::Resourceful#load_data (method)">#load_data</a></span>, <span class='object_link'><a href="../ComponentMixins/Resourceful.html#resourceful%3F-instance_method" title="Compony::ComponentMixins::Resourceful#resourceful? (method)">#resourceful?</a></span>, <span class='object_link'><a href="../ComponentMixins/Resourceful.html#
|
|
305
|
+
<p class="inherited"><span class='object_link'><a href="../ComponentMixins/Resourceful.html#after_assign_attributes-instance_method" title="Compony::ComponentMixins::Resourceful#after_assign_attributes (method)">#after_assign_attributes</a></span>, <span class='object_link'><a href="../ComponentMixins/Resourceful.html#after_load_data-instance_method" title="Compony::ComponentMixins::Resourceful#after_load_data (method)">#after_load_data</a></span>, <span class='object_link'><a href="../ComponentMixins/Resourceful.html#assign_attributes-instance_method" title="Compony::ComponentMixins::Resourceful#assign_attributes (method)">#assign_attributes</a></span>, <span class='object_link'><a href="../ComponentMixins/Resourceful.html#data_class-instance_method" title="Compony::ComponentMixins::Resourceful#data_class (method)">#data_class</a></span>, <span class='object_link'><a href="../ComponentMixins/Resourceful.html#load_data-instance_method" title="Compony::ComponentMixins::Resourceful#load_data (method)">#load_data</a></span>, <span class='object_link'><a href="../ComponentMixins/Resourceful.html#resourceful%3F-instance_method" title="Compony::ComponentMixins::Resourceful#resourceful? (method)">#resourceful?</a></span>, <span class='object_link'><a href="../ComponentMixins/Resourceful.html#store_data-instance_method" title="Compony::ComponentMixins::Resourceful#store_data (method)">#store_data</a></span></p>
|
|
281
306
|
|
|
282
307
|
|
|
283
308
|
|
|
@@ -341,14 +366,14 @@
|
|
|
341
366
|
<pre class="lines">
|
|
342
367
|
|
|
343
368
|
|
|
344
|
-
56
|
|
345
|
-
57
|
|
346
369
|
58
|
|
347
370
|
59
|
|
348
|
-
60
|
|
371
|
+
60
|
|
372
|
+
61
|
|
373
|
+
62</pre>
|
|
349
374
|
</td>
|
|
350
375
|
<td>
|
|
351
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/show.rb', line
|
|
376
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/show.rb', line 58</span>
|
|
352
377
|
|
|
353
378
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='op'>*</span><span class='comma'>,</span> <span class='label'>skip_columns:</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='op'>**</span><span class='rparen'>)</span>
|
|
354
379
|
<span class='ivar'>@columns</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../NaturalOrdering.html" title="Compony::NaturalOrdering (class)">NaturalOrdering</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
|
|
@@ -413,12 +438,12 @@
|
|
|
413
438
|
<pre class="lines">
|
|
414
439
|
|
|
415
440
|
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
441
|
+
106
|
|
442
|
+
107
|
|
443
|
+
108</pre>
|
|
419
444
|
</td>
|
|
420
445
|
<td>
|
|
421
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/show.rb', line
|
|
446
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/show.rb', line 106</span>
|
|
422
447
|
|
|
423
448
|
<span class='kw'>def</span> <span class='id identifier rubyid_all_field_columns'>all_field_columns</span><span class='lparen'>(</span><span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span>
|
|
424
449
|
<span class='id identifier rubyid_data'>data</span><span class='period'>.</span><span class='id identifier rubyid_fields'>fields</span><span class='period'>.</span><span class='id identifier rubyid_each_key'>each_key</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_field_name'>field_name</span><span class='op'>|</span> <span class='id identifier rubyid_column'>column</span><span class='lparen'>(</span><span class='id identifier rubyid_field_name'>field_name</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
|
|
@@ -562,8 +587,6 @@
|
|
|
562
587
|
<pre class="lines">
|
|
563
588
|
|
|
564
589
|
|
|
565
|
-
69
|
|
566
|
-
70
|
|
567
590
|
71
|
|
568
591
|
72
|
|
569
592
|
73
|
|
@@ -577,10 +600,12 @@
|
|
|
577
600
|
81
|
|
578
601
|
82
|
|
579
602
|
83
|
|
580
|
-
84
|
|
603
|
+
84
|
|
604
|
+
85
|
|
605
|
+
86</pre>
|
|
581
606
|
</td>
|
|
582
607
|
<td>
|
|
583
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/show.rb', line
|
|
608
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/show.rb', line 71</span>
|
|
584
609
|
|
|
585
610
|
<span class='kw'>def</span> <span class='id identifier rubyid_column'>column</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='label'>label:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>class:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>link_opts:</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='label'>link_to_component:</span> <span class='symbol'>:show</span><span class='comma'>,</span> <span class='op'>**</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
|
586
611
|
<span class='id identifier rubyid_name'>name</span> <span class='op'>=</span> <span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span>
|
|
@@ -649,12 +674,12 @@
|
|
|
649
674
|
<pre class="lines">
|
|
650
675
|
|
|
651
676
|
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
677
|
+
91
|
|
678
|
+
92
|
|
679
|
+
93</pre>
|
|
655
680
|
</td>
|
|
656
681
|
<td>
|
|
657
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/show.rb', line
|
|
682
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/show.rb', line 91</span>
|
|
658
683
|
|
|
659
684
|
<span class='kw'>def</span> <span class='id identifier rubyid_columns'>columns</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_col_names'>col_names</span><span class='comma'>,</span> <span class='op'>**</span><span class='rparen'>)</span>
|
|
660
685
|
<span class='id identifier rubyid_col_names'>col_names</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_col_name'>col_name</span><span class='op'>|</span> <span class='id identifier rubyid_column'>column</span><span class='lparen'>(</span><span class='id identifier rubyid_col_name'>col_name</span><span class='comma'>,</span> <span class='op'>**</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
|
|
@@ -710,12 +735,12 @@
|
|
|
710
735
|
<pre class="lines">
|
|
711
736
|
|
|
712
737
|
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
738
|
+
99
|
|
739
|
+
100
|
|
740
|
+
101</pre>
|
|
716
741
|
</td>
|
|
717
742
|
<td>
|
|
718
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/show.rb', line
|
|
743
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/show.rb', line 99</span>
|
|
719
744
|
|
|
720
745
|
<span class='kw'>def</span> <span class='id identifier rubyid_skip_column'>skip_column</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
|
|
721
746
|
<span class='ivar'>@skipped_columns</span> <span class='op'><<</span> <span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span>
|
|
@@ -730,7 +755,7 @@
|
|
|
730
755
|
</div>
|
|
731
756
|
|
|
732
757
|
<div id="footer">
|
|
733
|
-
Generated on
|
|
758
|
+
Generated on Fri Dec 12 16:04:22 2025 by
|
|
734
759
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
735
760
|
0.9.34 (ruby-3.3.5).
|
|
736
761
|
</div>
|
|
@@ -591,7 +591,7 @@
|
|
|
591
591
|
</div>
|
|
592
592
|
|
|
593
593
|
<div id="footer">
|
|
594
|
-
Generated on
|
|
594
|
+
Generated on Fri Dec 12 16:04:23 2025 by
|
|
595
595
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
596
596
|
0.9.34 (ruby-3.3.5).
|
|
597
597
|
</div>
|
data/doc/Compony/Components.html
CHANGED
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
</div>
|
|
119
119
|
|
|
120
120
|
<div id="footer">
|
|
121
|
-
Generated on
|
|
121
|
+
Generated on Fri Dec 12 16:04:22 2025 by
|
|
122
122
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
123
123
|
0.9.34 (ruby-3.3.5).
|
|
124
124
|
</div>
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
</div>
|
|
127
127
|
|
|
128
128
|
<div id="footer">
|
|
129
|
-
Generated on
|
|
129
|
+
Generated on Fri Dec 12 16:04:22 2025 by
|
|
130
130
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
131
131
|
0.9.34 (ruby-3.3.5).
|
|
132
132
|
</div>
|
data/doc/Compony/Engine.html
CHANGED
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
</div>
|
|
124
124
|
|
|
125
125
|
<div id="footer">
|
|
126
|
-
Generated on
|
|
126
|
+
Generated on Fri Dec 12 16:04:22 2025 by
|
|
127
127
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
128
128
|
0.9.34 (ruby-3.3.5).
|
|
129
129
|
</div>
|
data/doc/Compony/Intent.html
CHANGED
|
@@ -1094,7 +1094,7 @@
|
|
|
1094
1094
|
<pre class="code"><span class="info file"># File 'lib/compony/intent.rb', line 119</span>
|
|
1095
1095
|
|
|
1096
1096
|
<span class='kw'>def</span> <span class='id identifier rubyid_feasibility_target'>feasibility_target</span>
|
|
1097
|
-
<span class='ivar'>@feasibility_target</span><span class='period'>.</span><span class='id identifier rubyid_presence'>presence</span> <span class='op'>||</span> <span class='id identifier rubyid_model?'>model?</span> <span class='op'>?</span> <span class='ivar'>@data</span> <span class='op'>:</span> <span class='kw'>nil</span>
|
|
1097
|
+
<span class='ivar'>@feasibility_target</span><span class='period'>.</span><span class='id identifier rubyid_presence'>presence</span> <span class='op'>||</span> <span class='lparen'>(</span><span class='id identifier rubyid_model?'>model?</span> <span class='op'>?</span> <span class='ivar'>@data</span> <span class='op'>:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
|
1098
1098
|
<span class='kw'>end</span></pre>
|
|
1099
1099
|
</td>
|
|
1100
1100
|
</tr>
|
|
@@ -1561,7 +1561,7 @@
|
|
|
1561
1561
|
</div>
|
|
1562
1562
|
|
|
1563
1563
|
<div id="footer">
|
|
1564
|
-
Generated on
|
|
1564
|
+
Generated on Fri Dec 12 16:04:22 2025 by
|
|
1565
1565
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1566
1566
|
0.9.34 (ruby-3.3.5).
|
|
1567
1567
|
</div>
|
|
@@ -403,7 +403,7 @@
|
|
|
403
403
|
</div>
|
|
404
404
|
|
|
405
405
|
<div id="footer">
|
|
406
|
-
Generated on
|
|
406
|
+
Generated on Fri Dec 12 16:04:23 2025 by
|
|
407
407
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
408
408
|
0.9.34 (ruby-3.3.5).
|
|
409
409
|
</div>
|
|
@@ -443,7 +443,7 @@ instance_of_a_hash.roo --> nil
|
|
|
443
443
|
</div>
|
|
444
444
|
|
|
445
445
|
<div id="footer">
|
|
446
|
-
Generated on
|
|
446
|
+
Generated on Fri Dec 12 16:04:23 2025 by
|
|
447
447
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
448
448
|
0.9.34 (ruby-3.3.5).
|
|
449
449
|
</div>
|
|
@@ -509,7 +509,7 @@
|
|
|
509
509
|
</div>
|
|
510
510
|
|
|
511
511
|
<div id="footer">
|
|
512
|
-
Generated on
|
|
512
|
+
Generated on Fri Dec 12 16:04:23 2025 by
|
|
513
513
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
514
514
|
0.9.34 (ruby-3.3.5).
|
|
515
515
|
</div>
|
|
@@ -603,7 +603,7 @@
|
|
|
603
603
|
</div>
|
|
604
604
|
|
|
605
605
|
<div id="footer">
|
|
606
|
-
Generated on
|
|
606
|
+
Generated on Fri Dec 12 16:04:23 2025 by
|
|
607
607
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
608
608
|
0.9.34 (ruby-3.3.5).
|
|
609
609
|
</div>
|
|
@@ -489,7 +489,7 @@
|
|
|
489
489
|
</div>
|
|
490
490
|
|
|
491
491
|
<div id="footer">
|
|
492
|
-
Generated on
|
|
492
|
+
Generated on Fri Dec 12 16:04:23 2025 by
|
|
493
493
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
494
494
|
0.9.34 (ruby-3.3.5).
|
|
495
495
|
</div>
|
|
@@ -1186,7 +1186,7 @@
|
|
|
1186
1186
|
</div>
|
|
1187
1187
|
|
|
1188
1188
|
<div id="footer">
|
|
1189
|
-
Generated on
|
|
1189
|
+
Generated on Fri Dec 12 16:04:23 2025 by
|
|
1190
1190
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1191
1191
|
0.9.34 (ruby-3.3.5).
|
|
1192
1192
|
</div>
|
|
@@ -354,7 +354,7 @@
|
|
|
354
354
|
</div>
|
|
355
355
|
|
|
356
356
|
<div id="footer">
|
|
357
|
-
Generated on
|
|
357
|
+
Generated on Fri Dec 12 16:04:23 2025 by
|
|
358
358
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
359
359
|
0.9.34 (ruby-3.3.5).
|
|
360
360
|
</div>
|
|
@@ -289,7 +289,7 @@
|
|
|
289
289
|
</div>
|
|
290
290
|
|
|
291
291
|
<div id="footer">
|
|
292
|
-
Generated on
|
|
292
|
+
Generated on Fri Dec 12 16:04:23 2025 by
|
|
293
293
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
294
294
|
0.9.34 (ruby-3.3.5).
|
|
295
295
|
</div>
|
|
@@ -222,7 +222,7 @@
|
|
|
222
222
|
</div>
|
|
223
223
|
|
|
224
224
|
<div id="footer">
|
|
225
|
-
Generated on
|
|
225
|
+
Generated on Fri Dec 12 16:04:23 2025 by
|
|
226
226
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
227
227
|
0.9.34 (ruby-3.3.5).
|
|
228
228
|
</div>
|
|
@@ -222,7 +222,7 @@
|
|
|
222
222
|
</div>
|
|
223
223
|
|
|
224
224
|
<div id="footer">
|
|
225
|
-
Generated on
|
|
225
|
+
Generated on Fri Dec 12 16:04:23 2025 by
|
|
226
226
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
227
227
|
0.9.34 (ruby-3.3.5).
|
|
228
228
|
</div>
|
|
@@ -222,7 +222,7 @@
|
|
|
222
222
|
</div>
|
|
223
223
|
|
|
224
224
|
<div id="footer">
|
|
225
|
-
Generated on
|
|
225
|
+
Generated on Fri Dec 12 16:04:23 2025 by
|
|
226
226
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
227
227
|
0.9.34 (ruby-3.3.5).
|
|
228
228
|
</div>
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
</div>
|
|
145
145
|
|
|
146
146
|
<div id="footer">
|
|
147
|
-
Generated on
|
|
147
|
+
Generated on Fri Dec 12 16:04:23 2025 by
|
|
148
148
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
149
149
|
0.9.34 (ruby-3.3.5).
|
|
150
150
|
</div>
|
|
@@ -230,7 +230,7 @@
|
|
|
230
230
|
</div>
|
|
231
231
|
|
|
232
232
|
<div id="footer">
|
|
233
|
-
Generated on
|
|
233
|
+
Generated on Fri Dec 12 16:04:23 2025 by
|
|
234
234
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
235
235
|
0.9.34 (ruby-3.3.5).
|
|
236
236
|
</div>
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
</div>
|
|
145
145
|
|
|
146
146
|
<div id="footer">
|
|
147
|
-
Generated on
|
|
147
|
+
Generated on Fri Dec 12 16:04:23 2025 by
|
|
148
148
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
149
149
|
0.9.34 (ruby-3.3.5).
|
|
150
150
|
</div>
|
|
@@ -222,7 +222,7 @@
|
|
|
222
222
|
</div>
|
|
223
223
|
|
|
224
224
|
<div id="footer">
|
|
225
|
-
Generated on
|
|
225
|
+
Generated on Fri Dec 12 16:04:23 2025 by
|
|
226
226
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
227
227
|
0.9.34 (ruby-3.3.5).
|
|
228
228
|
</div>
|
|
@@ -222,7 +222,7 @@
|
|
|
222
222
|
</div>
|
|
223
223
|
|
|
224
224
|
<div id="footer">
|
|
225
|
-
Generated on
|
|
225
|
+
Generated on Fri Dec 12 16:04:23 2025 by
|
|
226
226
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
227
227
|
0.9.34 (ruby-3.3.5).
|
|
228
228
|
</div>
|
|
@@ -291,7 +291,7 @@
|
|
|
291
291
|
</div>
|
|
292
292
|
|
|
293
293
|
<div id="footer">
|
|
294
|
-
Generated on
|
|
294
|
+
Generated on Fri Dec 12 16:04:23 2025 by
|
|
295
295
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
296
296
|
0.9.34 (ruby-3.3.5).
|
|
297
297
|
</div>
|
|
@@ -222,7 +222,7 @@
|
|
|
222
222
|
</div>
|
|
223
223
|
|
|
224
224
|
<div id="footer">
|
|
225
|
-
Generated on
|
|
225
|
+
Generated on Fri Dec 12 16:04:23 2025 by
|
|
226
226
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
227
227
|
0.9.34 (ruby-3.3.5).
|
|
228
228
|
</div>
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
</div>
|
|
145
145
|
|
|
146
146
|
<div id="footer">
|
|
147
|
-
Generated on
|
|
147
|
+
Generated on Fri Dec 12 16:04:23 2025 by
|
|
148
148
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
149
149
|
0.9.34 (ruby-3.3.5).
|
|
150
150
|
</div>
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
</div>
|
|
145
145
|
|
|
146
146
|
<div id="footer">
|
|
147
|
-
Generated on
|
|
147
|
+
Generated on Fri Dec 12 16:04:23 2025 by
|
|
148
148
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
149
149
|
0.9.34 (ruby-3.3.5).
|
|
150
150
|
</div>
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
</div>
|
|
145
145
|
|
|
146
146
|
<div id="footer">
|
|
147
|
-
Generated on
|
|
147
|
+
Generated on Fri Dec 12 16:04:23 2025 by
|
|
148
148
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
149
149
|
0.9.34 (ruby-3.3.5).
|
|
150
150
|
</div>
|
|
@@ -230,7 +230,7 @@
|
|
|
230
230
|
</div>
|
|
231
231
|
|
|
232
232
|
<div id="footer">
|
|
233
|
-
Generated on
|
|
233
|
+
Generated on Fri Dec 12 16:04:23 2025 by
|
|
234
234
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
235
235
|
0.9.34 (ruby-3.3.5).
|
|
236
236
|
</div>
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
</div>
|
|
117
117
|
|
|
118
118
|
<div id="footer">
|
|
119
|
-
Generated on
|
|
119
|
+
Generated on Fri Dec 12 16:04:22 2025 by
|
|
120
120
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
121
121
|
0.9.34 (ruby-3.3.5).
|
|
122
122
|
</div>
|
data/doc/Compony/ModelMixin.html
CHANGED
|
@@ -519,7 +519,7 @@
|
|
|
519
519
|
</div>
|
|
520
520
|
|
|
521
521
|
<div id="footer">
|
|
522
|
-
Generated on
|
|
522
|
+
Generated on Fri Dec 12 16:04:22 2025 by
|
|
523
523
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
524
524
|
0.9.34 (ruby-3.3.5).
|
|
525
525
|
</div>
|
|
@@ -290,7 +290,7 @@
|
|
|
290
290
|
</div>
|
|
291
291
|
|
|
292
292
|
<div id="footer">
|
|
293
|
-
Generated on
|
|
293
|
+
Generated on Fri Dec 12 16:04:23 2025 by
|
|
294
294
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
295
295
|
0.9.34 (ruby-3.3.5).
|
|
296
296
|
</div>
|
|
@@ -1084,7 +1084,7 @@
|
|
|
1084
1084
|
</div>
|
|
1085
1085
|
|
|
1086
1086
|
<div id="footer">
|
|
1087
|
-
Generated on
|
|
1087
|
+
Generated on Fri Dec 12 16:04:23 2025 by
|
|
1088
1088
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1089
1089
|
0.9.34 (ruby-3.3.5).
|
|
1090
1090
|
</div>
|
data/doc/Compony/Version.html
CHANGED
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
</div>
|
|
130
130
|
|
|
131
131
|
<div id="footer">
|
|
132
|
-
Generated on
|
|
132
|
+
Generated on Fri Dec 12 16:04:22 2025 by
|
|
133
133
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
134
134
|
0.9.34 (ruby-3.3.5).
|
|
135
135
|
</div>
|
|
@@ -222,7 +222,7 @@
|
|
|
222
222
|
</div>
|
|
223
223
|
|
|
224
224
|
<div id="footer">
|
|
225
|
-
Generated on
|
|
225
|
+
Generated on Fri Dec 12 16:04:22 2025 by
|
|
226
226
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
227
227
|
0.9.34 (ruby-3.3.5).
|
|
228
228
|
</div>
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
</div>
|
|
143
143
|
|
|
144
144
|
<div id="footer">
|
|
145
|
-
Generated on
|
|
145
|
+
Generated on Fri Dec 12 16:04:22 2025 by
|
|
146
146
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
147
147
|
0.9.34 (ruby-3.3.5).
|
|
148
148
|
</div>
|
data/doc/Compony.html
CHANGED
|
@@ -1674,7 +1674,7 @@
|
|
|
1674
1674
|
</div>
|
|
1675
1675
|
|
|
1676
1676
|
<div id="footer">
|
|
1677
|
-
Generated on
|
|
1677
|
+
Generated on Fri Dec 12 16:04:22 2025 by
|
|
1678
1678
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1679
1679
|
0.9.34 (ruby-3.3.5).
|
|
1680
1680
|
</div>
|
data/doc/ComponyController.html
CHANGED
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
</div>
|
|
115
115
|
|
|
116
116
|
<div id="footer">
|
|
117
|
-
Generated on
|
|
117
|
+
Generated on Fri Dec 12 16:04:23 2025 by
|
|
118
118
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
119
119
|
0.9.34 (ruby-3.3.5).
|
|
120
120
|
</div>
|
data/doc/_index.html
CHANGED
|
@@ -622,7 +622,7 @@
|
|
|
622
622
|
</div>
|
|
623
623
|
|
|
624
624
|
<div id="footer">
|
|
625
|
-
Generated on
|
|
625
|
+
Generated on Fri Dec 12 16:04:21 2025 by
|
|
626
626
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
627
627
|
0.9.34 (ruby-3.3.5).
|
|
628
628
|
</div>
|
data/doc/file.README.html
CHANGED
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
</div></div>
|
|
200
200
|
|
|
201
201
|
<div id="footer">
|
|
202
|
-
Generated on
|
|
202
|
+
Generated on Fri Dec 12 16:04:21 2025 by
|
|
203
203
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
204
204
|
0.9.34 (ruby-3.3.5).
|
|
205
205
|
</div>
|
data/doc/guide/resourceful.md
CHANGED
|
@@ -88,16 +88,6 @@ This graph documents a typical resourceful lifecycle according to which Compony'
|
|
|
88
88
|
|
|
89
89
|
## Nesting resourceful components
|
|
90
90
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
When nesting resourceful components, it is therefore best to load all necessary data in the root component. Make sure to include any relations used by sub-components in order to avoid "n+1" queries in the database.
|
|
94
|
-
|
|
95
|
-
`resourceful_sub_comp` is the resourceful sibling of `sub_comp` and both are used the same way. Under the hood, the resourceful call passes two extra parameters to the sub component: `data` and `data_class`.
|
|
96
|
-
|
|
97
|
-
The rule of thumb thus becomes:
|
|
98
|
-
|
|
99
|
-
- When a resourceful component instantiates a resourceful sub-component, use `resourceful_sub_comp` in the parent component.
|
|
100
|
-
- When a resourceful component instantiates a non-resourceful sub-component, use `sub_comp`.
|
|
101
|
-
- The situation where a non-resourceful component instantiates a resourceful component should not occur. Instead, make your parent component resourceful, even if it doesn't use the data itself. By housing a resourceful sub-comp, the parent component's nature inherently becomes resourceful and you should use the Resourceful mixin.
|
|
91
|
+
The [Intent](/doc/guide/intents.md) API makes it very easy to pass a resource to nested components. For more details, refer to [this example](/doc/guide/nesting.md#rendering-list-as-sub-comp-in-show).
|
|
102
92
|
|
|
103
93
|
[Guide index](/README.md#guide--documentation)
|
data/doc/index.html
CHANGED
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
</div></div>
|
|
200
200
|
|
|
201
201
|
<div id="footer">
|
|
202
|
-
Generated on
|
|
202
|
+
Generated on Fri Dec 12 16:04:21 2025 by
|
|
203
203
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
204
204
|
0.9.34 (ruby-3.3.5).
|
|
205
205
|
</div>
|