compony 0.2.3 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +27 -0
- data/README.md +90 -13
- data/VERSION +1 -1
- data/compony.gemspec +4 -4
- data/doc/ComponentGenerator.html +1 -1
- data/doc/Components.html +1 -1
- data/doc/ComponentsGenerator.html +1 -1
- data/doc/Compony/Component.html +396 -334
- 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 +1 -1
- data/doc/Compony/ComponentMixins.html +1 -1
- data/doc/Compony/Components/Button.html +3 -3
- data/doc/Compony/Components/Destroy.html +15 -15
- data/doc/Compony/Components/Edit.html +19 -19
- data/doc/Compony/Components/Form.html +87 -87
- data/doc/Compony/Components/New.html +15 -15
- data/doc/Compony/Components/WithForm.html +4 -4
- data/doc/Compony/Components.html +1 -1
- data/doc/Compony/ControllerMixin.html +1 -1
- data/doc/Compony/Engine.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 +300 -0
- data/doc/Compony/RequestContext.html +84 -1
- data/doc/Compony/Version.html +1 -1
- data/doc/Compony/ViewHelpers.html +1 -1
- data/doc/Compony.html +3 -3
- data/doc/ComponyController.html +1 -1
- data/doc/_index.html +8 -1
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +82 -16
- data/doc/index.html +82 -16
- data/doc/method_list.html +169 -161
- data/doc/top-level-namespace.html +1 -1
- data/lib/compony/component.rb +40 -52
- data/lib/compony/components/destroy.rb +9 -1
- data/lib/compony/components/edit.rb +2 -4
- data/lib/compony/components/form.rb +16 -5
- data/lib/compony/components/new.rb +5 -6
- data/lib/compony/components/with_form.rb +1 -1
- data/lib/compony/natural_ordering.rb +60 -0
- data/lib/compony/request_context.rb +14 -0
- data/lib/compony.rb +1 -0
- metadata +4 -2
@@ -121,7 +121,7 @@
|
|
121
121
|
<h2>Instance Attribute Summary</h2>
|
122
122
|
|
123
123
|
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="../Component.html" title="Compony::Component (class)">Compony::Component</a></span></h3>
|
124
|
-
<p class="inherited"><span class='object_link'><a href="../Component.html#comp_opts-instance_method" title="Compony::Component#comp_opts (method)">#comp_opts</a></span>, <span class='object_link'><a href="../Component.html#parent_comp-instance_method" title="Compony::Component#parent_comp (method)">#parent_comp</a></span></p>
|
124
|
+
<p class="inherited"><span class='object_link'><a href="../Component.html#comp_opts-instance_method" title="Compony::Component#comp_opts (method)">#comp_opts</a></span>, <span class='object_link'><a href="../Component.html#content_blocks-instance_method" title="Compony::Component#content_blocks (method)">#content_blocks</a></span>, <span class='object_link'><a href="../Component.html#parent_comp-instance_method" title="Compony::Component#parent_comp (method)">#parent_comp</a></span></p>
|
125
125
|
|
126
126
|
|
127
127
|
|
@@ -459,7 +459,7 @@
|
|
459
459
|
|
460
460
|
|
461
461
|
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="../Component.html" title="Compony::Component (class)">Compony::Component</a></span></h3>
|
462
|
-
<p class="inherited"><span class='object_link'><a href="../Component.html#action-instance_method" title="Compony::Component#action (method)">#action</a></span>, <span class='object_link'><a href="../Component.html#
|
462
|
+
<p class="inherited"><span class='object_link'><a href="../Component.html#action-instance_method" title="Compony::Component#action (method)">#action</a></span>, <span class='object_link'><a href="../Component.html#before_render-instance_method" title="Compony::Component#before_render (method)">#before_render</a></span>, <span class='object_link'><a href="../Component.html#comp_cst-instance_method" title="Compony::Component#comp_cst (method)">#comp_cst</a></span>, <span class='object_link'><a href="../Component.html#comp_name-instance_method" title="Compony::Component#comp_name (method)">#comp_name</a></span>, <span class='object_link'><a href="../Component.html#content-instance_method" title="Compony::Component#content (method)">#content</a></span>, <span class='object_link'><a href="../Component.html#family_cst-instance_method" title="Compony::Component#family_cst (method)">#family_cst</a></span>, <span class='object_link'><a href="../Component.html#family_name-instance_method" title="Compony::Component#family_name (method)">#family_name</a></span>, <span class='object_link'><a href="../Component.html#id-instance_method" title="Compony::Component#id (method)">#id</a></span>, <span class='object_link'><a href="../Component.html#inspect-instance_method" title="Compony::Component#inspect (method)">#inspect</a></span>, <span class='object_link'><a href="../Component.html#param_name-instance_method" title="Compony::Component#param_name (method)">#param_name</a></span>, <span class='object_link'><a href="../Component.html#path-instance_method" title="Compony::Component#path (method)">#path</a></span>, <span class='object_link'><a href="../Component.html#path_hash-instance_method" title="Compony::Component#path_hash (method)">#path_hash</a></span>, <span class='object_link'><a href="../Component.html#remove_content-instance_method" title="Compony::Component#remove_content (method)">#remove_content</a></span>, <span class='object_link'><a href="../Component.html#render-instance_method" title="Compony::Component#render (method)">#render</a></span>, <span class='object_link'><a href="../Component.html#render_actions-instance_method" title="Compony::Component#render_actions (method)">#render_actions</a></span>, <span class='object_link'><a href="../Component.html#resourceful%3F-instance_method" title="Compony::Component#resourceful? (method)">#resourceful?</a></span>, <span class='object_link'><a href="../Component.html#root_comp-instance_method" title="Compony::Component#root_comp (method)">#root_comp</a></span>, <span class='object_link'><a href="../Component.html#root_comp%3F-instance_method" title="Compony::Component#root_comp? (method)">#root_comp?</a></span>, <span class='object_link'><a href="../Component.html#setup-class_method" title="Compony::Component.setup (method)">setup</a></span>, <span class='object_link'><a href="../Component.html#skip_action-instance_method" title="Compony::Component#skip_action (method)">#skip_action</a></span>, <span class='object_link'><a href="../Component.html#sub_comp-instance_method" title="Compony::Component#sub_comp (method)">#sub_comp</a></span></p>
|
463
463
|
<div id="constructor_details" class="method_details_list">
|
464
464
|
<h2>Constructor Details</h2>
|
465
465
|
|
@@ -539,12 +539,12 @@
|
|
539
539
|
<pre class="lines">
|
540
540
|
|
541
541
|
|
542
|
-
|
543
|
-
|
544
|
-
|
542
|
+
116
|
543
|
+
117
|
544
|
+
118</pre>
|
545
545
|
</td>
|
546
546
|
<td>
|
547
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line
|
547
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line 116</span>
|
548
548
|
|
549
549
|
<span class='kw'>def</span> <span class='id identifier rubyid_collect'>collect</span><span class='lparen'>(</span><span class='op'>...</span><span class='rparen'>)</span>
|
550
550
|
<span class='const'><span class='object_link'><a href="../../Compony.html" title="Compony (module)">Compony</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../ModelFields.html" title="Compony::ModelFields (module)">ModelFields</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../ModelFields/Anchormodel.html" title="Compony::ModelFields::Anchormodel (class)">Anchormodel</a></span></span><span class='period'>.</span><span class='id identifier rubyid_collect'><span class='object_link'><a href="../ModelFields/Anchormodel.html#collect-class_method" title="Compony::ModelFields::Anchormodel.collect (method)">collect</a></span></span><span class='lparen'>(</span><span class='op'>...</span><span class='rparen'>)</span>
|
@@ -580,13 +580,13 @@
|
|
580
580
|
<pre class="lines">
|
581
581
|
|
582
582
|
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
583
|
+
110
|
584
|
+
111
|
585
|
+
112
|
586
|
+
113</pre>
|
587
587
|
</td>
|
588
588
|
<td>
|
589
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line
|
589
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line 110</span>
|
590
590
|
|
591
591
|
<span class='kw'>def</span> <span class='id identifier rubyid_f'>f</span>
|
592
592
|
<span class='id identifier rubyid_fail'>fail</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>The `f` method may only be called inside `form_fields` for </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_inspect'>inspect</span><span class='embexpr_end'>}</span><span class='tstring_content'>.</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='ivar'>@simpleform</span>
|
@@ -623,26 +623,26 @@
|
|
623
623
|
<pre class="lines">
|
624
624
|
|
625
625
|
|
626
|
-
79
|
627
|
-
80
|
628
|
-
81
|
629
|
-
82
|
630
|
-
83
|
631
|
-
84
|
632
|
-
85
|
633
|
-
86
|
634
|
-
87
|
635
|
-
88
|
636
|
-
89
|
637
626
|
90
|
638
627
|
91
|
639
628
|
92
|
640
629
|
93
|
641
630
|
94
|
642
|
-
95
|
631
|
+
95
|
632
|
+
96
|
633
|
+
97
|
634
|
+
98
|
635
|
+
99
|
636
|
+
100
|
637
|
+
101
|
638
|
+
102
|
639
|
+
103
|
640
|
+
104
|
641
|
+
105
|
642
|
+
106</pre>
|
643
643
|
</td>
|
644
644
|
<td>
|
645
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line
|
645
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line 90</span>
|
646
646
|
|
647
647
|
<span class='kw'>def</span> <span class='id identifier rubyid_field'>field</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='op'>**</span><span class='id identifier rubyid_input_opts'>input_opts</span><span class='rparen'>)</span>
|
648
648
|
<span class='id identifier rubyid_fail'>fail</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>The `field` method may only be called inside `form_fields` for </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_inspect'>inspect</span><span class='embexpr_end'>}</span><span class='tstring_content'>.</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='ivar'>@simpleform</span>
|
@@ -692,13 +692,13 @@
|
|
692
692
|
<pre class="lines">
|
693
693
|
|
694
694
|
|
695
|
-
|
696
|
-
|
697
|
-
|
698
|
-
|
695
|
+
47
|
696
|
+
48
|
697
|
+
49
|
698
|
+
50</pre>
|
699
699
|
</td>
|
700
700
|
<td>
|
701
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line
|
701
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line 47</span>
|
702
702
|
|
703
703
|
<span class='kw'>def</span> <span class='id identifier rubyid_form_fields'>form_fields</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
704
704
|
<span class='kw'>return</span> <span class='ivar'>@form_fields</span> <span class='kw'>unless</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
|
@@ -735,17 +735,17 @@
|
|
735
735
|
<pre class="lines">
|
736
736
|
|
737
737
|
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
|
743
|
-
|
744
|
-
|
745
|
-
|
738
|
+
142
|
739
|
+
143
|
740
|
+
144
|
741
|
+
145
|
742
|
+
146
|
743
|
+
147
|
744
|
+
148
|
745
|
+
149</pre>
|
746
746
|
</td>
|
747
747
|
<td>
|
748
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line
|
748
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line 142</span>
|
749
749
|
|
750
750
|
<span class='kw'>def</span> <span class='id identifier rubyid_schema'>schema</span><span class='lparen'>(</span><span class='id identifier rubyid_wrapper_key'>wrapper_key</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
751
751
|
<span class='kw'>if</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
|
@@ -786,22 +786,22 @@
|
|
786
786
|
<pre class="lines">
|
787
787
|
|
788
788
|
|
789
|
-
52
|
790
|
-
53
|
791
|
-
54
|
792
|
-
55
|
793
|
-
56
|
794
|
-
57
|
795
|
-
58
|
796
|
-
59
|
797
|
-
60
|
798
|
-
61
|
799
|
-
62
|
800
789
|
63
|
801
|
-
64
|
790
|
+
64
|
791
|
+
65
|
792
|
+
66
|
793
|
+
67
|
794
|
+
68
|
795
|
+
69
|
796
|
+
70
|
797
|
+
71
|
798
|
+
72
|
799
|
+
73
|
800
|
+
74
|
801
|
+
75</pre>
|
802
802
|
</td>
|
803
803
|
<td>
|
804
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line
|
804
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line 63</span>
|
805
805
|
|
806
806
|
<span class='kw'>def</span> <span class='id identifier rubyid_schema_block_for'>schema_block_for</span><span class='lparen'>(</span><span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span>
|
807
807
|
<span class='kw'>if</span> <span class='ivar'>@schema_block</span>
|
@@ -847,15 +847,15 @@
|
|
847
847
|
<pre class="lines">
|
848
848
|
|
849
849
|
|
850
|
-
|
851
|
-
|
852
|
-
|
853
|
-
|
854
|
-
|
855
|
-
|
850
|
+
129
|
851
|
+
130
|
852
|
+
131
|
853
|
+
132
|
854
|
+
133
|
855
|
+
134</pre>
|
856
856
|
</td>
|
857
857
|
<td>
|
858
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line
|
858
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line 129</span>
|
859
859
|
|
860
860
|
<span class='kw'>def</span> <span class='id identifier rubyid_schema_field'>schema_field</span><span class='lparen'>(</span><span class='id identifier rubyid_field_name'>field_name</span><span class='rparen'>)</span>
|
861
861
|
<span class='ivar'>@schema_lines_for_data</span> <span class='op'><<</span> <span class='id identifier rubyid_proc'>proc</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_data'>data</span><span class='op'>|</span>
|
@@ -894,12 +894,12 @@
|
|
894
894
|
<pre class="lines">
|
895
895
|
|
896
896
|
|
897
|
-
|
898
|
-
|
899
|
-
|
897
|
+
137
|
898
|
+
138
|
899
|
+
139</pre>
|
900
900
|
</td>
|
901
901
|
<td>
|
902
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line
|
902
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line 137</span>
|
903
903
|
|
904
904
|
<span class='kw'>def</span> <span class='id identifier rubyid_schema_fields'>schema_fields</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_field_names'>field_names</span><span class='rparen'>)</span>
|
905
905
|
<span class='id identifier rubyid_field_names'>field_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_field_name'>field_name</span><span class='op'>|</span> <span class='id identifier rubyid_schema_field'>schema_field</span><span class='lparen'>(</span><span class='id identifier rubyid_field_name'>field_name</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
|
@@ -935,12 +935,12 @@
|
|
935
935
|
<pre class="lines">
|
936
936
|
|
937
937
|
|
938
|
-
|
939
|
-
|
940
|
-
|
938
|
+
123
|
939
|
+
124
|
940
|
+
125</pre>
|
941
941
|
</td>
|
942
942
|
<td>
|
943
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line
|
943
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line 123</span>
|
944
944
|
|
945
945
|
<span class='kw'>def</span> <span class='id identifier rubyid_schema_line'>schema_line</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
946
946
|
<span class='ivar'>@schema_lines_for_data</span> <span class='op'><<</span> <span class='id identifier rubyid_proc'>proc</span> <span class='lbrace'>{</span> <span class='id identifier rubyid_block'>block</span> <span class='rbrace'>}</span>
|
@@ -976,17 +976,17 @@
|
|
976
976
|
<pre class="lines">
|
977
977
|
|
978
978
|
|
979
|
-
|
980
|
-
|
981
|
-
|
982
|
-
|
983
|
-
|
984
|
-
|
985
|
-
|
986
|
-
|
979
|
+
53
|
980
|
+
54
|
981
|
+
55
|
982
|
+
56
|
983
|
+
57
|
984
|
+
58
|
985
|
+
59
|
986
|
+
60</pre>
|
987
987
|
</td>
|
988
988
|
<td>
|
989
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line
|
989
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line 53</span>
|
990
990
|
|
991
991
|
<span class='kw'>def</span> <span class='id identifier rubyid_schema_wrapper_key_for'>schema_wrapper_key_for</span><span class='lparen'>(</span><span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span>
|
992
992
|
<span class='kw'>if</span> <span class='ivar'>@schema_wrapper_key</span><span class='period'>.</span><span class='id identifier rubyid_present?'>present?</span>
|
@@ -1027,12 +1027,12 @@
|
|
1027
1027
|
<pre class="lines">
|
1028
1028
|
|
1029
1029
|
|
1030
|
-
|
1031
|
-
|
1032
|
-
|
1030
|
+
152
|
1031
|
+
153
|
1032
|
+
154</pre>
|
1033
1033
|
</td>
|
1034
1034
|
<td>
|
1035
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line
|
1035
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line 152</span>
|
1036
1036
|
|
1037
1037
|
<span class='kw'>def</span> <span class='id identifier rubyid_skip_autofocus'>skip_autofocus</span>
|
1038
1038
|
<span class='ivar'>@skip_autofocus</span> <span class='op'>=</span> <span class='kw'>true</span>
|
@@ -1076,15 +1076,15 @@
|
|
1076
1076
|
<pre class="lines">
|
1077
1077
|
|
1078
1078
|
|
1079
|
-
|
1080
|
-
|
1081
|
-
|
1082
|
-
|
1083
|
-
|
1084
|
-
|
1079
|
+
81
|
1080
|
+
82
|
1081
|
+
83
|
1082
|
+
84
|
1083
|
+
85
|
1084
|
+
86</pre>
|
1085
1085
|
</td>
|
1086
1086
|
<td>
|
1087
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line
|
1087
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line 81</span>
|
1088
1088
|
|
1089
1089
|
<span class='kw'>def</span> <span class='id identifier rubyid_with_simpleform'>with_simpleform</span><span class='lparen'>(</span><span class='id identifier rubyid_simpleform'>simpleform</span><span class='rparen'>)</span>
|
1090
1090
|
<span class='ivar'>@simpleform</span> <span class='op'>=</span> <span class='id identifier rubyid_simpleform'>simpleform</span>
|
@@ -1102,7 +1102,7 @@
|
|
1102
1102
|
</div>
|
1103
1103
|
|
1104
1104
|
<div id="footer">
|
1105
|
-
Generated on
|
1105
|
+
Generated on Fri May 31 14:28:30 2024 by
|
1106
1106
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1107
1107
|
0.9.34 (ruby-3.2.2).
|
1108
1108
|
</div>
|
@@ -133,7 +133,7 @@
|
|
133
133
|
|
134
134
|
|
135
135
|
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="../Component.html" title="Compony::Component (class)">Compony::Component</a></span></h3>
|
136
|
-
<p class="inherited"><span class='object_link'><a href="../Component.html#comp_opts-instance_method" title="Compony::Component#comp_opts (method)">#comp_opts</a></span>, <span class='object_link'><a href="../Component.html#parent_comp-instance_method" title="Compony::Component#parent_comp (method)">#parent_comp</a></span></p>
|
136
|
+
<p class="inherited"><span class='object_link'><a href="../Component.html#comp_opts-instance_method" title="Compony::Component#comp_opts (method)">#comp_opts</a></span>, <span class='object_link'><a href="../Component.html#content_blocks-instance_method" title="Compony::Component#content_blocks (method)">#content_blocks</a></span>, <span class='object_link'><a href="../Component.html#parent_comp-instance_method" title="Compony::Component#parent_comp (method)">#parent_comp</a></span></p>
|
137
137
|
|
138
138
|
|
139
139
|
|
@@ -276,7 +276,7 @@
|
|
276
276
|
|
277
277
|
|
278
278
|
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="../Component.html" title="Compony::Component (class)">Compony::Component</a></span></h3>
|
279
|
-
<p class="inherited"><span class='object_link'><a href="../Component.html#action-instance_method" title="Compony::Component#action (method)">#action</a></span>, <span class='object_link'><a href="../Component.html#
|
279
|
+
<p class="inherited"><span class='object_link'><a href="../Component.html#action-instance_method" title="Compony::Component#action (method)">#action</a></span>, <span class='object_link'><a href="../Component.html#before_render-instance_method" title="Compony::Component#before_render (method)">#before_render</a></span>, <span class='object_link'><a href="../Component.html#comp_cst-instance_method" title="Compony::Component#comp_cst (method)">#comp_cst</a></span>, <span class='object_link'><a href="../Component.html#comp_name-instance_method" title="Compony::Component#comp_name (method)">#comp_name</a></span>, <span class='object_link'><a href="../Component.html#content-instance_method" title="Compony::Component#content (method)">#content</a></span>, <span class='object_link'><a href="../Component.html#family_cst-instance_method" title="Compony::Component#family_cst (method)">#family_cst</a></span>, <span class='object_link'><a href="../Component.html#family_name-instance_method" title="Compony::Component#family_name (method)">#family_name</a></span>, <span class='object_link'><a href="../Component.html#id-instance_method" title="Compony::Component#id (method)">#id</a></span>, <span class='object_link'><a href="../Component.html#initialize-instance_method" title="Compony::Component#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="../Component.html#inspect-instance_method" title="Compony::Component#inspect (method)">#inspect</a></span>, <span class='object_link'><a href="../Component.html#param_name-instance_method" title="Compony::Component#param_name (method)">#param_name</a></span>, <span class='object_link'><a href="../Component.html#path-instance_method" title="Compony::Component#path (method)">#path</a></span>, <span class='object_link'><a href="../Component.html#path_hash-instance_method" title="Compony::Component#path_hash (method)">#path_hash</a></span>, <span class='object_link'><a href="../Component.html#remove_content-instance_method" title="Compony::Component#remove_content (method)">#remove_content</a></span>, <span class='object_link'><a href="../Component.html#render-instance_method" title="Compony::Component#render (method)">#render</a></span>, <span class='object_link'><a href="../Component.html#render_actions-instance_method" title="Compony::Component#render_actions (method)">#render_actions</a></span>, <span class='object_link'><a href="../Component.html#resourceful%3F-instance_method" title="Compony::Component#resourceful? (method)">#resourceful?</a></span>, <span class='object_link'><a href="../Component.html#root_comp-instance_method" title="Compony::Component#root_comp (method)">#root_comp</a></span>, <span class='object_link'><a href="../Component.html#root_comp%3F-instance_method" title="Compony::Component#root_comp? (method)">#root_comp?</a></span>, <span class='object_link'><a href="../Component.html#setup-class_method" title="Compony::Component.setup (method)">setup</a></span>, <span class='object_link'><a href="../Component.html#skip_action-instance_method" title="Compony::Component#skip_action (method)">#skip_action</a></span>, <span class='object_link'><a href="../Component.html#sub_comp-instance_method" title="Compony::Component#sub_comp (method)">#sub_comp</a></span></p>
|
280
280
|
|
281
281
|
|
282
282
|
<div id="instance_method_details" class="method_details_list">
|
@@ -309,12 +309,12 @@
|
|
309
309
|
<pre class="lines">
|
310
310
|
|
311
311
|
|
312
|
+
96
|
312
313
|
97
|
313
|
-
98
|
314
|
-
99</pre>
|
314
|
+
98</pre>
|
315
315
|
</td>
|
316
316
|
<td>
|
317
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/new.rb', line
|
317
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/new.rb', line 96</span>
|
318
318
|
|
319
319
|
<span class='kw'>def</span> <span class='id identifier rubyid_on_create_failed_respond'>on_create_failed_respond</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
320
320
|
<span class='ivar'>@on_create_failed_respond_block</span> <span class='op'>=</span> <span class='id identifier rubyid_block'>block</span>
|
@@ -350,12 +350,12 @@
|
|
350
350
|
<pre class="lines">
|
351
351
|
|
352
352
|
|
353
|
+
81
|
353
354
|
82
|
354
|
-
83
|
355
|
-
84</pre>
|
355
|
+
83</pre>
|
356
356
|
</td>
|
357
357
|
<td>
|
358
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/new.rb', line
|
358
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/new.rb', line 81</span>
|
359
359
|
|
360
360
|
<span class='kw'>def</span> <span class='id identifier rubyid_on_created'>on_created</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
361
361
|
<span class='ivar'>@on_created_block</span> <span class='op'>=</span> <span class='id identifier rubyid_block'>block</span>
|
@@ -391,12 +391,12 @@
|
|
391
391
|
<pre class="lines">
|
392
392
|
|
393
393
|
|
394
|
+
91
|
394
395
|
92
|
395
|
-
93
|
396
|
-
94</pre>
|
396
|
+
93</pre>
|
397
397
|
</td>
|
398
398
|
<td>
|
399
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/new.rb', line
|
399
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/new.rb', line 91</span>
|
400
400
|
|
401
401
|
<span class='kw'>def</span> <span class='id identifier rubyid_on_created_redirect_path'>on_created_redirect_path</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
402
402
|
<span class='ivar'>@on_created_redirect_path_block</span> <span class='op'>=</span> <span class='id identifier rubyid_block'>block</span>
|
@@ -432,12 +432,12 @@
|
|
432
432
|
<pre class="lines">
|
433
433
|
|
434
434
|
|
435
|
+
86
|
435
436
|
87
|
436
|
-
88
|
437
|
-
89</pre>
|
437
|
+
88</pre>
|
438
438
|
</td>
|
439
439
|
<td>
|
440
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/new.rb', line
|
440
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/new.rb', line 86</span>
|
441
441
|
|
442
442
|
<span class='kw'>def</span> <span class='id identifier rubyid_on_created_respond'>on_created_respond</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
443
443
|
<span class='ivar'>@on_created_respond_block</span> <span class='op'>=</span> <span class='id identifier rubyid_block'>block</span>
|
@@ -452,7 +452,7 @@
|
|
452
452
|
</div>
|
453
453
|
|
454
454
|
<div id="footer">
|
455
|
-
Generated on
|
455
|
+
Generated on Fri May 31 14:28:30 2024 by
|
456
456
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
457
457
|
0.9.34 (ruby-3.2.2).
|
458
458
|
</div>
|
@@ -125,7 +125,7 @@
|
|
125
125
|
<h2>Instance Attribute Summary</h2>
|
126
126
|
|
127
127
|
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="../Component.html" title="Compony::Component (class)">Compony::Component</a></span></h3>
|
128
|
-
<p class="inherited"><span class='object_link'><a href="../Component.html#comp_opts-instance_method" title="Compony::Component#comp_opts (method)">#comp_opts</a></span>, <span class='object_link'><a href="../Component.html#parent_comp-instance_method" title="Compony::Component#parent_comp (method)">#parent_comp</a></span></p>
|
128
|
+
<p class="inherited"><span class='object_link'><a href="../Component.html#comp_opts-instance_method" title="Compony::Component#comp_opts (method)">#comp_opts</a></span>, <span class='object_link'><a href="../Component.html#content_blocks-instance_method" title="Compony::Component#content_blocks (method)">#content_blocks</a></span>, <span class='object_link'><a href="../Component.html#parent_comp-instance_method" title="Compony::Component#parent_comp (method)">#parent_comp</a></span></p>
|
129
129
|
|
130
130
|
|
131
131
|
|
@@ -271,7 +271,7 @@
|
|
271
271
|
|
272
272
|
|
273
273
|
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="../Component.html" title="Compony::Component (class)">Compony::Component</a></span></h3>
|
274
|
-
<p class="inherited"><span class='object_link'><a href="../Component.html#action-instance_method" title="Compony::Component#action (method)">#action</a></span>, <span class='object_link'><a href="../Component.html#
|
274
|
+
<p class="inherited"><span class='object_link'><a href="../Component.html#action-instance_method" title="Compony::Component#action (method)">#action</a></span>, <span class='object_link'><a href="../Component.html#before_render-instance_method" title="Compony::Component#before_render (method)">#before_render</a></span>, <span class='object_link'><a href="../Component.html#comp_cst-instance_method" title="Compony::Component#comp_cst (method)">#comp_cst</a></span>, <span class='object_link'><a href="../Component.html#comp_name-instance_method" title="Compony::Component#comp_name (method)">#comp_name</a></span>, <span class='object_link'><a href="../Component.html#content-instance_method" title="Compony::Component#content (method)">#content</a></span>, <span class='object_link'><a href="../Component.html#family_cst-instance_method" title="Compony::Component#family_cst (method)">#family_cst</a></span>, <span class='object_link'><a href="../Component.html#family_name-instance_method" title="Compony::Component#family_name (method)">#family_name</a></span>, <span class='object_link'><a href="../Component.html#id-instance_method" title="Compony::Component#id (method)">#id</a></span>, <span class='object_link'><a href="../Component.html#inspect-instance_method" title="Compony::Component#inspect (method)">#inspect</a></span>, <span class='object_link'><a href="../Component.html#param_name-instance_method" title="Compony::Component#param_name (method)">#param_name</a></span>, <span class='object_link'><a href="../Component.html#path-instance_method" title="Compony::Component#path (method)">#path</a></span>, <span class='object_link'><a href="../Component.html#path_hash-instance_method" title="Compony::Component#path_hash (method)">#path_hash</a></span>, <span class='object_link'><a href="../Component.html#remove_content-instance_method" title="Compony::Component#remove_content (method)">#remove_content</a></span>, <span class='object_link'><a href="../Component.html#render-instance_method" title="Compony::Component#render (method)">#render</a></span>, <span class='object_link'><a href="../Component.html#render_actions-instance_method" title="Compony::Component#render_actions (method)">#render_actions</a></span>, <span class='object_link'><a href="../Component.html#resourceful%3F-instance_method" title="Compony::Component#resourceful? (method)">#resourceful?</a></span>, <span class='object_link'><a href="../Component.html#root_comp-instance_method" title="Compony::Component#root_comp (method)">#root_comp</a></span>, <span class='object_link'><a href="../Component.html#root_comp%3F-instance_method" title="Compony::Component#root_comp? (method)">#root_comp?</a></span>, <span class='object_link'><a href="../Component.html#setup-class_method" title="Compony::Component.setup (method)">setup</a></span>, <span class='object_link'><a href="../Component.html#skip_action-instance_method" title="Compony::Component#skip_action (method)">#skip_action</a></span>, <span class='object_link'><a href="../Component.html#sub_comp-instance_method" title="Compony::Component#sub_comp (method)">#sub_comp</a></span></p>
|
275
275
|
<div id="constructor_details" class="method_details_list">
|
276
276
|
<h2>Constructor Details</h2>
|
277
277
|
|
@@ -366,7 +366,7 @@
|
|
366
366
|
<pre class="code"><span class="info file"># File 'lib/compony/components/with_form.rb', line 15</span>
|
367
367
|
|
368
368
|
<span class='kw'>def</span> <span class='id identifier rubyid_form_comp'>form_comp</span>
|
369
|
-
<span class='ivar'>@form_comp</span> <span class='op'>||=</span> <span class='lparen'>(</span><span class='id identifier rubyid_form_comp_class'>form_comp_class</span> <span class='op'>||</span> <span class='id identifier rubyid_comp_class_for!'>comp_class_for!</span><span class='lparen'>(</span><span class='symbol'>:form</span><span class='comma'>,</span> <span class='id identifier rubyid_family_cst'>family_cst</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span>
|
369
|
+
<span class='ivar'>@form_comp</span> <span class='op'>||=</span> <span class='lparen'>(</span><span class='id identifier rubyid_form_comp_class'>form_comp_class</span> <span class='op'>||</span> <span class='const'><span class='object_link'><a href="../../Compony.html" title="Compony (module)">Compony</a></span></span><span class='period'>.</span><span class='id identifier rubyid_comp_class_for!'><span class='object_link'><a href="../../Compony.html#comp_class_for!-class_method" title="Compony.comp_class_for! (method)">comp_class_for!</a></span></span><span class='lparen'>(</span><span class='symbol'>:form</span><span class='comma'>,</span> <span class='id identifier rubyid_family_cst'>family_cst</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span>
|
370
370
|
<span class='kw'>self</span><span class='comma'>,</span>
|
371
371
|
<span class='label'>submit_verb:</span><span class='comma'>,</span>
|
372
372
|
<span class='comment'># If applicable, Rails adds the route keys automatically, thus, e.g. :id does not need to be passed here, as it comes from the request.
|
@@ -518,7 +518,7 @@
|
|
518
518
|
</div>
|
519
519
|
|
520
520
|
<div id="footer">
|
521
|
-
Generated on
|
521
|
+
Generated on Fri May 31 14:28:30 2024 by
|
522
522
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
523
523
|
0.9.34 (ruby-3.2.2).
|
524
524
|
</div>
|
data/doc/Compony/Components.html
CHANGED
@@ -116,7 +116,7 @@
|
|
116
116
|
</div>
|
117
117
|
|
118
118
|
<div id="footer">
|
119
|
-
Generated on
|
119
|
+
Generated on Fri May 31 14:28:29 2024 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.2.2).
|
122
122
|
</div>
|
@@ -126,7 +126,7 @@
|
|
126
126
|
</div>
|
127
127
|
|
128
128
|
<div id="footer">
|
129
|
-
Generated on
|
129
|
+
Generated on Fri May 31 14:28:29 2024 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.2.2).
|
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 May 31 14:28:30 2024 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.2.2).
|
129
129
|
</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 May 31 14:28:30 2024 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.2.2).
|
449
449
|
</div>
|
@@ -377,7 +377,7 @@
|
|
377
377
|
</div>
|
378
378
|
|
379
379
|
<div id="footer">
|
380
|
-
Generated on
|
380
|
+
Generated on Fri May 31 14:28:30 2024 by
|
381
381
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
382
382
|
0.9.34 (ruby-3.2.2).
|
383
383
|
</div>
|
@@ -603,7 +603,7 @@
|
|
603
603
|
</div>
|
604
604
|
|
605
605
|
<div id="footer">
|
606
|
-
Generated on
|
606
|
+
Generated on Fri May 31 14:28:30 2024 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.2.2).
|
609
609
|
</div>
|
@@ -295,7 +295,7 @@
|
|
295
295
|
</div>
|
296
296
|
|
297
297
|
<div id="footer">
|
298
|
-
Generated on
|
298
|
+
Generated on Fri May 31 14:28:30 2024 by
|
299
299
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
300
300
|
0.9.34 (ruby-3.2.2).
|
301
301
|
</div>
|
@@ -1056,7 +1056,7 @@
|
|
1056
1056
|
</div>
|
1057
1057
|
|
1058
1058
|
<div id="footer">
|
1059
|
-
Generated on
|
1059
|
+
Generated on Fri May 31 14:28:30 2024 by
|
1060
1060
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1061
1061
|
0.9.34 (ruby-3.2.2).
|
1062
1062
|
</div>
|
@@ -222,7 +222,7 @@
|
|
222
222
|
</div>
|
223
223
|
|
224
224
|
<div id="footer">
|
225
|
-
Generated on
|
225
|
+
Generated on Fri May 31 14:28:30 2024 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.2.2).
|
228
228
|
</div>
|
@@ -289,7 +289,7 @@
|
|
289
289
|
</div>
|
290
290
|
|
291
291
|
<div id="footer">
|
292
|
-
Generated on
|
292
|
+
Generated on Fri May 31 14:28:30 2024 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.2.2).
|
295
295
|
</div>
|
@@ -222,7 +222,7 @@
|
|
222
222
|
</div>
|
223
223
|
|
224
224
|
<div id="footer">
|
225
|
-
Generated on
|
225
|
+
Generated on Fri May 31 14:28:30 2024 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.2.2).
|
228
228
|
</div>
|