compony 0.5.4 → 0.5.5
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 +4 -0
- 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 +1 -1
- data/doc/Compony/ComponentMixins.html +1 -1
- data/doc/Compony/Components/Button.html +1 -1
- data/doc/Compony/Components/Destroy.html +1 -1
- data/doc/Compony/Components/Edit.html +1 -1
- data/doc/Compony/Components/Form.html +1 -1
- data/doc/Compony/Components/New.html +1 -1
- 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/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 +23 -23
- 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.html +1 -1
- data/doc/ComponyController.html +1 -1
- data/doc/_index.html +1 -1
- data/doc/file.README.html +7 -7
- data/doc/index.html +7 -7
- data/doc/top-level-namespace.html +1 -1
- data/lib/compony/model_mixin.rb +5 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a6d8c0928be267c500e06a09f452b860951fa5f3d824e3955b5c44ccb90d267
|
4
|
+
data.tar.gz: e593b4de45955b885ee5e7bc13763b4a7d447ed28a7f5872bc7c0aaef5bd2ef9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99234847f35b343b6fd1e6c68fbc7264fa662b0d303c479843b6e238a27358612c23cce3d31313f75887d8d9b15232697f37a13054520027ce8cd4eac1d20233
|
7
|
+
data.tar.gz: 65a51d30a5c0a87bc0afb03b9ef4071629f27084be4929593b9e88fbd7f7df9c47d1ff84a40863a3ce2bc022d97efb740dca9e880cad0b92a722430d82f78d1b
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.5
|
data/compony.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# This file is auto-generated via: 'rake gemspec'.
|
3
3
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: compony 0.5.
|
5
|
+
# stub: compony 0.5.5 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "compony".freeze
|
9
|
-
s.version = "0.5.
|
9
|
+
s.version = "0.5.5".freeze
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib".freeze]
|
13
13
|
s.authors = ["Sandro Kalbermatter".freeze, "contributors".freeze]
|
14
|
-
s.date = "2025-
|
14
|
+
s.date = "2025-04-07"
|
15
15
|
s.files = [".gitignore".freeze, ".ruby-version".freeze, ".yardopts".freeze, "CHANGELOG.md".freeze, "Gemfile".freeze, "Gemfile.lock".freeze, "LICENSE".freeze, "README.md".freeze, "Rakefile".freeze, "TODO.md".freeze, "VERSION".freeze, "app/controllers/compony_controller.rb".freeze, "compony.gemspec".freeze, "config/locales/de.yml".freeze, "config/locales/en.yml".freeze, "config/locales/fr.yml".freeze, "config/routes.rb".freeze, "doc/ComponentGenerator.html".freeze, "doc/Components.html".freeze, "doc/ComponentsGenerator.html".freeze, "doc/Compony.html".freeze, "doc/Compony/Component.html".freeze, "doc/Compony/ComponentMixins.html".freeze, "doc/Compony/ComponentMixins/Default.html".freeze, "doc/Compony/ComponentMixins/Default/Labelling.html".freeze, "doc/Compony/ComponentMixins/Default/Standalone.html".freeze, "doc/Compony/ComponentMixins/Default/Standalone/ResourcefulVerbDsl.html".freeze, "doc/Compony/ComponentMixins/Default/Standalone/StandaloneDsl.html".freeze, "doc/Compony/ComponentMixins/Default/Standalone/VerbDsl.html".freeze, "doc/Compony/ComponentMixins/Resourceful.html".freeze, "doc/Compony/Components.html".freeze, "doc/Compony/Components/Button.html".freeze, "doc/Compony/Components/Destroy.html".freeze, "doc/Compony/Components/Edit.html".freeze, "doc/Compony/Components/Form.html".freeze, "doc/Compony/Components/New.html".freeze, "doc/Compony/Components/WithForm.html".freeze, "doc/Compony/ControllerMixin.html".freeze, "doc/Compony/Engine.html".freeze, "doc/Compony/MethodAccessibleHash.html".freeze, "doc/Compony/ModelFields.html".freeze, "doc/Compony/ModelFields/Anchormodel.html".freeze, "doc/Compony/ModelFields/Association.html".freeze, "doc/Compony/ModelFields/Attachment.html".freeze, "doc/Compony/ModelFields/Base.html".freeze, "doc/Compony/ModelFields/Boolean.html".freeze, "doc/Compony/ModelFields/Color.html".freeze, "doc/Compony/ModelFields/Currency.html".freeze, "doc/Compony/ModelFields/Date.html".freeze, "doc/Compony/ModelFields/Datetime.html".freeze, "doc/Compony/ModelFields/Decimal.html".freeze, "doc/Compony/ModelFields/Email.html".freeze, "doc/Compony/ModelFields/Float.html".freeze, "doc/Compony/ModelFields/Integer.html".freeze, "doc/Compony/ModelFields/Percentage.html".freeze, "doc/Compony/ModelFields/Phone.html".freeze, "doc/Compony/ModelFields/RichText.html".freeze, "doc/Compony/ModelFields/String.html".freeze, "doc/Compony/ModelFields/Text.html".freeze, "doc/Compony/ModelFields/Time.html".freeze, "doc/Compony/ModelFields/Url.html".freeze, "doc/Compony/ModelMixin.html".freeze, "doc/Compony/NaturalOrdering.html".freeze, "doc/Compony/RequestContext.html".freeze, "doc/Compony/Version.html".freeze, "doc/Compony/ViewHelpers.html".freeze, "doc/ComponyController.html".freeze, "doc/_index.html".freeze, "doc/class_list.html".freeze, "doc/css/common.css".freeze, "doc/css/full_list.css".freeze, "doc/css/style.css".freeze, "doc/file.README.html".freeze, "doc/file_list.html".freeze, "doc/frames.html".freeze, "doc/imgs/intro-example-destroy.png".freeze, "doc/imgs/intro-example-edit.png".freeze, "doc/imgs/intro-example-index.png".freeze, "doc/imgs/intro-example-new.png".freeze, "doc/imgs/intro-example-show.png".freeze, "doc/index.html".freeze, "doc/js/app.js".freeze, "doc/js/full_list.js".freeze, "doc/js/jquery.js".freeze, "doc/method_list.html".freeze, "doc/resourceful_lifecycle.graphml".freeze, "doc/resourceful_lifecycle.pdf".freeze, "doc/resourceful_lifecycle.png".freeze, "doc/top-level-namespace.html".freeze, "lib/compony.rb".freeze, "lib/compony/component.rb".freeze, "lib/compony/component_mixins/default/labelling.rb".freeze, "lib/compony/component_mixins/default/standalone.rb".freeze, "lib/compony/component_mixins/default/standalone/resourceful_verb_dsl.rb".freeze, "lib/compony/component_mixins/default/standalone/standalone_dsl.rb".freeze, "lib/compony/component_mixins/default/standalone/verb_dsl.rb".freeze, "lib/compony/component_mixins/resourceful.rb".freeze, "lib/compony/components/button.rb".freeze, "lib/compony/components/destroy.rb".freeze, "lib/compony/components/edit.rb".freeze, "lib/compony/components/form.rb".freeze, "lib/compony/components/new.rb".freeze, "lib/compony/components/with_form.rb".freeze, "lib/compony/controller_mixin.rb".freeze, "lib/compony/engine.rb".freeze, "lib/compony/method_accessible_hash.rb".freeze, "lib/compony/model_fields/anchormodel.rb".freeze, "lib/compony/model_fields/association.rb".freeze, "lib/compony/model_fields/attachment.rb".freeze, "lib/compony/model_fields/base.rb".freeze, "lib/compony/model_fields/boolean.rb".freeze, "lib/compony/model_fields/color.rb".freeze, "lib/compony/model_fields/currency.rb".freeze, "lib/compony/model_fields/date.rb".freeze, "lib/compony/model_fields/datetime.rb".freeze, "lib/compony/model_fields/decimal.rb".freeze, "lib/compony/model_fields/email.rb".freeze, "lib/compony/model_fields/float.rb".freeze, "lib/compony/model_fields/integer.rb".freeze, "lib/compony/model_fields/percentage.rb".freeze, "lib/compony/model_fields/phone.rb".freeze, "lib/compony/model_fields/rich_text.rb".freeze, "lib/compony/model_fields/string.rb".freeze, "lib/compony/model_fields/text.rb".freeze, "lib/compony/model_fields/time.rb".freeze, "lib/compony/model_fields/url.rb".freeze, "lib/compony/model_mixin.rb".freeze, "lib/compony/natural_ordering.rb".freeze, "lib/compony/request_context.rb".freeze, "lib/compony/version.rb".freeze, "lib/compony/view_helpers.rb".freeze, "lib/generators/component/USAGE".freeze, "lib/generators/component/component_generator.rb".freeze, "lib/generators/component/templates/component.rb.erb".freeze, "lib/generators/component/templates/destroy.rb.erb".freeze, "lib/generators/component/templates/edit.rb.erb".freeze, "lib/generators/component/templates/form.rb.erb".freeze, "lib/generators/component/templates/new.rb.erb".freeze, "lib/generators/components/USAGE".freeze, "lib/generators/components/components_generator.rb".freeze, "logo.svg".freeze]
|
16
16
|
s.required_ruby_version = Gem::Requirement.new(">= 3.3.5".freeze)
|
17
17
|
s.rubygems_version = "3.6.3".freeze
|
data/doc/ComponentGenerator.html
CHANGED
@@ -221,7 +221,7 @@
|
|
221
221
|
</div>
|
222
222
|
|
223
223
|
<div id="footer">
|
224
|
-
Generated on
|
224
|
+
Generated on Mon Apr 7 13:00:53 2025 by
|
225
225
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
226
226
|
0.9.37 (ruby-3.3.5).
|
227
227
|
</div>
|
data/doc/Components.html
CHANGED
@@ -193,7 +193,7 @@
|
|
193
193
|
</div>
|
194
194
|
|
195
195
|
<div id="footer">
|
196
|
-
Generated on
|
196
|
+
Generated on Mon Apr 7 13:00:53 2025 by
|
197
197
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
198
198
|
0.9.37 (ruby-3.3.5).
|
199
199
|
</div>
|
data/doc/Compony/Component.html
CHANGED
@@ -2503,7 +2503,7 @@
|
|
2503
2503
|
</div>
|
2504
2504
|
|
2505
2505
|
<div id="footer">
|
2506
|
-
Generated on
|
2506
|
+
Generated on Mon Apr 7 13:00:52 2025 by
|
2507
2507
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
2508
2508
|
0.9.37 (ruby-3.3.5).
|
2509
2509
|
</div>
|
@@ -396,7 +396,7 @@
|
|
396
396
|
</div>
|
397
397
|
|
398
398
|
<div id="footer">
|
399
|
-
Generated on
|
399
|
+
Generated on Mon Apr 7 13:00:52 2025 by
|
400
400
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
401
401
|
0.9.37 (ruby-3.3.5).
|
402
402
|
</div>
|
@@ -529,7 +529,7 @@
|
|
529
529
|
</div>
|
530
530
|
|
531
531
|
<div id="footer">
|
532
|
-
Generated on
|
532
|
+
Generated on Mon Apr 7 13:00:53 2025 by
|
533
533
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
534
534
|
0.9.37 (ruby-3.3.5).
|
535
535
|
</div>
|
@@ -659,7 +659,7 @@
|
|
659
659
|
</div>
|
660
660
|
|
661
661
|
<div id="footer">
|
662
|
-
Generated on
|
662
|
+
Generated on Mon Apr 7 13:00:53 2025 by
|
663
663
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
664
664
|
0.9.37 (ruby-3.3.5).
|
665
665
|
</div>
|
@@ -567,7 +567,7 @@
|
|
567
567
|
</div>
|
568
568
|
|
569
569
|
<div id="footer">
|
570
|
-
Generated on
|
570
|
+
Generated on Mon Apr 7 13:00:53 2025 by
|
571
571
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
572
572
|
0.9.37 (ruby-3.3.5).
|
573
573
|
</div>
|
@@ -682,7 +682,7 @@
|
|
682
682
|
</div>
|
683
683
|
|
684
684
|
<div id="footer">
|
685
|
-
Generated on
|
685
|
+
Generated on Mon Apr 7 13:00:52 2025 by
|
686
686
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
687
687
|
0.9.37 (ruby-3.3.5).
|
688
688
|
</div>
|
@@ -116,7 +116,7 @@
|
|
116
116
|
</div>
|
117
117
|
|
118
118
|
<div id="footer">
|
119
|
-
Generated on
|
119
|
+
Generated on Mon Apr 7 13:00:52 2025 by
|
120
120
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
121
121
|
0.9.37 (ruby-3.3.5).
|
122
122
|
</div>
|
@@ -1183,7 +1183,7 @@
|
|
1183
1183
|
</div>
|
1184
1184
|
|
1185
1185
|
<div id="footer">
|
1186
|
-
Generated on
|
1186
|
+
Generated on Mon Apr 7 13:00:52 2025 by
|
1187
1187
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1188
1188
|
0.9.37 (ruby-3.3.5).
|
1189
1189
|
</div>
|
@@ -116,7 +116,7 @@
|
|
116
116
|
</div>
|
117
117
|
|
118
118
|
<div id="footer">
|
119
|
-
Generated on
|
119
|
+
Generated on Mon Apr 7 13:00:52 2025 by
|
120
120
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
121
121
|
0.9.37 (ruby-3.3.5).
|
122
122
|
</div>
|
@@ -287,7 +287,7 @@
|
|
287
287
|
</div>
|
288
288
|
|
289
289
|
<div id="footer">
|
290
|
-
Generated on
|
290
|
+
Generated on Mon Apr 7 13:00:53 2025 by
|
291
291
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
292
292
|
0.9.37 (ruby-3.3.5).
|
293
293
|
</div>
|
@@ -374,7 +374,7 @@
|
|
374
374
|
</div>
|
375
375
|
|
376
376
|
<div id="footer">
|
377
|
-
Generated on
|
377
|
+
Generated on Mon Apr 7 13:00:53 2025 by
|
378
378
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
379
379
|
0.9.37 (ruby-3.3.5).
|
380
380
|
</div>
|
@@ -452,7 +452,7 @@
|
|
452
452
|
</div>
|
453
453
|
|
454
454
|
<div id="footer">
|
455
|
-
Generated on
|
455
|
+
Generated on Mon Apr 7 13:00:53 2025 by
|
456
456
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
457
457
|
0.9.37 (ruby-3.3.5).
|
458
458
|
</div>
|
@@ -1482,7 +1482,7 @@
|
|
1482
1482
|
</div>
|
1483
1483
|
|
1484
1484
|
<div id="footer">
|
1485
|
-
Generated on
|
1485
|
+
Generated on Mon Apr 7 13:00:53 2025 by
|
1486
1486
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1487
1487
|
0.9.37 (ruby-3.3.5).
|
1488
1488
|
</div>
|
@@ -452,7 +452,7 @@
|
|
452
452
|
</div>
|
453
453
|
|
454
454
|
<div id="footer">
|
455
|
-
Generated on
|
455
|
+
Generated on Mon Apr 7 13:00:53 2025 by
|
456
456
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
457
457
|
0.9.37 (ruby-3.3.5).
|
458
458
|
</div>
|
@@ -593,7 +593,7 @@
|
|
593
593
|
</div>
|
594
594
|
|
595
595
|
<div id="footer">
|
596
|
-
Generated on
|
596
|
+
Generated on Mon Apr 7 13:00:53 2025 by
|
597
597
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
598
598
|
0.9.37 (ruby-3.3.5).
|
599
599
|
</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 Mon Apr 7 13:00:52 2025 by
|
120
120
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
121
121
|
0.9.37 (ruby-3.3.5).
|
122
122
|
</div>
|
@@ -126,7 +126,7 @@
|
|
126
126
|
</div>
|
127
127
|
|
128
128
|
<div id="footer">
|
129
|
-
Generated on
|
129
|
+
Generated on Mon Apr 7 13:00:52 2025 by
|
130
130
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
131
131
|
0.9.37 (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 Mon Apr 7 13:00:52 2025 by
|
127
127
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
128
128
|
0.9.37 (ruby-3.3.5).
|
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 Mon Apr 7 13:00:53 2025 by
|
447
447
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
448
448
|
0.9.37 (ruby-3.3.5).
|
449
449
|
</div>
|
@@ -377,7 +377,7 @@
|
|
377
377
|
</div>
|
378
378
|
|
379
379
|
<div id="footer">
|
380
|
-
Generated on
|
380
|
+
Generated on Mon Apr 7 13:00:53 2025 by
|
381
381
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
382
382
|
0.9.37 (ruby-3.3.5).
|
383
383
|
</div>
|
@@ -603,7 +603,7 @@
|
|
603
603
|
</div>
|
604
604
|
|
605
605
|
<div id="footer">
|
606
|
-
Generated on
|
606
|
+
Generated on Mon Apr 7 13:00:53 2025 by
|
607
607
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
608
608
|
0.9.37 (ruby-3.3.5).
|
609
609
|
</div>
|
@@ -295,7 +295,7 @@
|
|
295
295
|
</div>
|
296
296
|
|
297
297
|
<div id="footer">
|
298
|
-
Generated on
|
298
|
+
Generated on Mon Apr 7 13:00:53 2025 by
|
299
299
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
300
300
|
0.9.37 (ruby-3.3.5).
|
301
301
|
</div>
|
@@ -1056,7 +1056,7 @@
|
|
1056
1056
|
</div>
|
1057
1057
|
|
1058
1058
|
<div id="footer">
|
1059
|
-
Generated on
|
1059
|
+
Generated on Mon Apr 7 13:00:53 2025 by
|
1060
1060
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1061
1061
|
0.9.37 (ruby-3.3.5).
|
1062
1062
|
</div>
|
@@ -222,7 +222,7 @@
|
|
222
222
|
</div>
|
223
223
|
|
224
224
|
<div id="footer">
|
225
|
-
Generated on
|
225
|
+
Generated on Mon Apr 7 13:00:53 2025 by
|
226
226
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
227
227
|
0.9.37 (ruby-3.3.5).
|
228
228
|
</div>
|
@@ -289,7 +289,7 @@
|
|
289
289
|
</div>
|
290
290
|
|
291
291
|
<div id="footer">
|
292
|
-
Generated on
|
292
|
+
Generated on Mon Apr 7 13:00:53 2025 by
|
293
293
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
294
294
|
0.9.37 (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 Mon Apr 7 13:00:53 2025 by
|
226
226
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
227
227
|
0.9.37 (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 Mon Apr 7 13:00:53 2025 by
|
226
226
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
227
227
|
0.9.37 (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 Mon Apr 7 13:00:53 2025 by
|
226
226
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
227
227
|
0.9.37 (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 Mon Apr 7 13:00:53 2025 by
|
148
148
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
149
149
|
0.9.37 (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 Mon Apr 7 13:00:53 2025 by
|
234
234
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
235
235
|
0.9.37 (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 Mon Apr 7 13:00:53 2025 by
|
148
148
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
149
149
|
0.9.37 (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 Mon Apr 7 13:00:53 2025 by
|
148
148
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
149
149
|
0.9.37 (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 Mon Apr 7 13:00:53 2025 by
|
226
226
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
227
227
|
0.9.37 (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 Mon Apr 7 13:00:53 2025 by
|
295
295
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
296
296
|
0.9.37 (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 Mon Apr 7 13:00:53 2025 by
|
226
226
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
227
227
|
0.9.37 (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 Mon Apr 7 13:00:53 2025 by
|
148
148
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
149
149
|
0.9.37 (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 Mon Apr 7 13:00:53 2025 by
|
148
148
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
149
149
|
0.9.37 (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 Mon Apr 7 13:00:53 2025 by
|
148
148
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
149
149
|
0.9.37 (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 Mon Apr 7 13:00:53 2025 by
|
234
234
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
235
235
|
0.9.37 (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 Mon Apr 7 13:00:52 2025 by
|
120
120
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
121
121
|
0.9.37 (ruby-3.3.5).
|
122
122
|
</div>
|
data/doc/Compony/ModelMixin.html
CHANGED
@@ -264,14 +264,14 @@
|
|
264
264
|
<pre class="lines">
|
265
265
|
|
266
266
|
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
267
|
+
113
|
268
|
+
114
|
269
|
+
115
|
270
|
+
116
|
271
|
+
117</pre>
|
272
272
|
</td>
|
273
273
|
<td>
|
274
|
-
<pre class="code"><span class="info file"># File 'lib/compony/model_mixin.rb', line
|
274
|
+
<pre class="code"><span class="info file"># File 'lib/compony/model_mixin.rb', line 113</span>
|
275
275
|
|
276
276
|
<span class='kw'>def</span> <span class='id identifier rubyid_feasibility_messages'>feasibility_messages</span><span class='lparen'>(</span><span class='id identifier rubyid_action_name'>action_name</span><span class='rparen'>)</span>
|
277
277
|
<span class='id identifier rubyid_action_name'>action_name</span> <span class='op'>=</span> <span class='id identifier rubyid_action_name'>action_name</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span>
|
@@ -360,10 +360,6 @@
|
|
360
360
|
<pre class="lines">
|
361
361
|
|
362
362
|
|
363
|
-
88
|
364
|
-
89
|
365
|
-
90
|
366
|
-
91
|
367
363
|
92
|
368
364
|
93
|
369
365
|
94
|
@@ -376,10 +372,14 @@
|
|
376
372
|
101
|
377
373
|
102
|
378
374
|
103
|
379
|
-
104
|
375
|
+
104
|
376
|
+
105
|
377
|
+
106
|
378
|
+
107
|
379
|
+
108</pre>
|
380
380
|
</td>
|
381
381
|
<td>
|
382
|
-
<pre class="code"><span class="info file"># File 'lib/compony/model_mixin.rb', line
|
382
|
+
<pre class="code"><span class="info file"># File 'lib/compony/model_mixin.rb', line 92</span>
|
383
383
|
|
384
384
|
<span class='kw'>def</span> <span class='id identifier rubyid_feasible?'>feasible?</span><span class='lparen'>(</span><span class='id identifier rubyid_action_name'>action_name</span><span class='comma'>,</span> <span class='label'>recompute:</span> <span class='kw'>false</span><span class='rparen'>)</span>
|
385
385
|
<span class='id identifier rubyid_action_name'>action_name</span> <span class='op'>=</span> <span class='id identifier rubyid_action_name'>action_name</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span>
|
@@ -429,12 +429,12 @@
|
|
429
429
|
<pre class="lines">
|
430
430
|
|
431
431
|
|
432
|
-
|
433
|
-
|
434
|
-
|
432
|
+
130
|
433
|
+
131
|
434
|
+
132</pre>
|
435
435
|
</td>
|
436
436
|
<td>
|
437
|
-
<pre class="code"><span class="info file"># File 'lib/compony/model_mixin.rb', line
|
437
|
+
<pre class="code"><span class="info file"># File 'lib/compony/model_mixin.rb', line 130</span>
|
438
438
|
|
439
439
|
<span class='kw'>def</span> <span class='id identifier rubyid_field'>field</span><span class='lparen'>(</span><span class='id identifier rubyid_field_name'>field_name</span><span class='comma'>,</span> <span class='id identifier rubyid_controller'>controller</span><span class='rparen'>)</span>
|
440
440
|
<span class='id identifier rubyid_fields'>fields</span><span class='lbracket'>[</span><span class='id identifier rubyid_field_name'>field_name</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_value_for'>value_for</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='label'>controller:</span><span class='rparen'>)</span>
|
@@ -490,14 +490,14 @@
|
|
490
490
|
<pre class="lines">
|
491
491
|
|
492
492
|
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
493
|
+
123
|
494
|
+
124
|
495
|
+
125
|
496
|
+
126
|
497
|
+
127</pre>
|
498
498
|
</td>
|
499
499
|
<td>
|
500
|
-
<pre class="code"><span class="info file"># File 'lib/compony/model_mixin.rb', line
|
500
|
+
<pre class="code"><span class="info file"># File 'lib/compony/model_mixin.rb', line 123</span>
|
501
501
|
|
502
502
|
<span class='kw'>def</span> <span class='id identifier rubyid_full_feasibility_messages'>full_feasibility_messages</span><span class='lparen'>(</span><span class='id identifier rubyid_action_name'>action_name</span><span class='rparen'>)</span>
|
503
503
|
<span class='id identifier rubyid_text'>text</span> <span class='op'>=</span> <span class='id identifier rubyid_feasibility_messages'>feasibility_messages</span><span class='lparen'>(</span><span class='id identifier rubyid_action_name'>action_name</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>, </span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_upcase_first'>upcase_first</span>
|
@@ -514,7 +514,7 @@
|
|
514
514
|
</div>
|
515
515
|
|
516
516
|
<div id="footer">
|
517
|
-
Generated on
|
517
|
+
Generated on Mon Apr 7 13:00:52 2025 by
|
518
518
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
519
519
|
0.9.37 (ruby-3.3.5).
|
520
520
|
</div>
|
@@ -290,7 +290,7 @@
|
|
290
290
|
</div>
|
291
291
|
|
292
292
|
<div id="footer">
|
293
|
-
Generated on
|
293
|
+
Generated on Mon Apr 7 13:00:53 2025 by
|
294
294
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
295
295
|
0.9.37 (ruby-3.3.5).
|
296
296
|
</div>
|
@@ -931,7 +931,7 @@
|
|
931
931
|
</div>
|
932
932
|
|
933
933
|
<div id="footer">
|
934
|
-
Generated on
|
934
|
+
Generated on Mon Apr 7 13:00:53 2025 by
|
935
935
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
936
936
|
0.9.37 (ruby-3.3.5).
|
937
937
|
</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 Mon Apr 7 13:00:52 2025 by
|
133
133
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
134
134
|
0.9.37 (ruby-3.3.5).
|
135
135
|
</div>
|
@@ -451,7 +451,7 @@
|
|
451
451
|
</div>
|
452
452
|
|
453
453
|
<div id="footer">
|
454
|
-
Generated on
|
454
|
+
Generated on Mon Apr 7 13:00:52 2025 by
|
455
455
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
456
456
|
0.9.37 (ruby-3.3.5).
|
457
457
|
</div>
|
data/doc/Compony.html
CHANGED
@@ -2206,7 +2206,7 @@
|
|
2206
2206
|
</div>
|
2207
2207
|
|
2208
2208
|
<div id="footer">
|
2209
|
-
Generated on
|
2209
|
+
Generated on Mon Apr 7 13:00:52 2025 by
|
2210
2210
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
2211
2211
|
0.9.37 (ruby-3.3.5).
|
2212
2212
|
</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 Mon Apr 7 13:00:53 2025 by
|
118
118
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
119
119
|
0.9.37 (ruby-3.3.5).
|
120
120
|
</div>
|
data/doc/_index.html
CHANGED
@@ -566,7 +566,7 @@
|
|
566
566
|
</div>
|
567
567
|
|
568
568
|
<div id="footer">
|
569
|
-
Generated on
|
569
|
+
Generated on Mon Apr 7 13:00:50 2025 by
|
570
570
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
571
571
|
0.9.37 (ruby-3.3.5).
|
572
572
|
</div>
|
data/doc/file.README.html
CHANGED
@@ -195,7 +195,7 @@
|
|
195
195
|
|
196
196
|
<p>Here is what our Show component looks like when we have a layout with the bare minimum and no styling at all:</p>
|
197
197
|
|
198
|
-
<p><img src="doc/imgs/intro-example-show.png"
|
198
|
+
<p><img src="doc/imgs/intro-example-show.png" alt="Screenshot"> of our component with an absolutely minimal layout</p>
|
199
199
|
|
200
200
|
<p>It is important to note that actions, buttons, navigation, notifications etc. are handled by the application layout. In this and the subsequent screenshots, we explicitely use minimalism, as it makes the generated HTML clearer.</p>
|
201
201
|
|
@@ -209,7 +209,7 @@
|
|
209
209
|
|
210
210
|
<p>Note that this component is fully functional. All is handled by the class it inherits from:</p>
|
211
211
|
|
212
|
-
<p><img src="doc/imgs/intro-example-destroy.png"
|
212
|
+
<p><img src="doc/imgs/intro-example-destroy.png" alt="Screenshot"> of the destroy component</p>
|
213
213
|
|
214
214
|
<h3 id="label-The+New+component+and+the+Form+component">The New component and the Form component</h3>
|
215
215
|
|
@@ -243,7 +243,7 @@
|
|
243
243
|
|
244
244
|
<p>This is enough to render a fully functional form that creates new users:</p>
|
245
245
|
|
246
|
-
<p><img src="doc/imgs/intro-example-new.png"
|
246
|
+
<p><img src="doc/imgs/intro-example-new.png" alt="New"> form</p>
|
247
247
|
|
248
248
|
<h3 id="label-The+Edit+component">The Edit component</h3>
|
249
249
|
|
@@ -255,7 +255,7 @@
|
|
255
255
|
|
256
256
|
<p>It then looks like this:</p>
|
257
257
|
|
258
|
-
<p><img src="doc/imgs/intro-example-edit.png"
|
258
|
+
<p><img src="doc/imgs/intro-example-edit.png" alt="Edit"> form</p>
|
259
259
|
|
260
260
|
<h3 id="label-The+Index+component">The Index component</h3>
|
261
261
|
|
@@ -307,7 +307,7 @@
|
|
307
307
|
|
308
308
|
<p>The result looks like this:</p>
|
309
309
|
|
310
|
-
<p><img src="doc/imgs/intro-example-index.png"
|
310
|
+
<p><img src="doc/imgs/intro-example-index.png" alt="Index"> component</p>
|
311
311
|
|
312
312
|
<p>Note how the admin’s delete button is disabled due to the feasibility framework. Pointing the mouse at it causes a tooltip saying: “Cannot destroy admins.”, as specified in the model’s prevention.</p>
|
313
313
|
|
@@ -1011,7 +1011,7 @@ The number 8 has the binary form 1000. Enter a number and press ENTER: [8]
|
|
1011
1011
|
<p><code>respond</code> typically shows a flash and redirects to another component.</p>
|
1012
1012
|
</li></ul>
|
1013
1013
|
|
1014
|
-
<p><img src="doc/resourceful_lifecycle.png"
|
1014
|
+
<p><img src="doc/resourceful_lifecycle.png" alt="Graph"> of the complete resourceful lifecycle</p>
|
1015
1015
|
|
1016
1016
|
<h3 id="label-Nesting+resourceful+components">Nesting resourceful components</h3>
|
1017
1017
|
|
@@ -1730,7 +1730,7 @@ my_button = Compony.button(:index, :users, enabled: -> { |controller| control
|
|
1730
1730
|
</div></div>
|
1731
1731
|
|
1732
1732
|
<div id="footer">
|
1733
|
-
Generated on
|
1733
|
+
Generated on Mon Apr 7 13:00:52 2025 by
|
1734
1734
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1735
1735
|
0.9.37 (ruby-3.3.5).
|
1736
1736
|
</div>
|
data/doc/index.html
CHANGED
@@ -195,7 +195,7 @@
|
|
195
195
|
|
196
196
|
<p>Here is what our Show component looks like when we have a layout with the bare minimum and no styling at all:</p>
|
197
197
|
|
198
|
-
<p><img src="doc/imgs/intro-example-show.png"
|
198
|
+
<p><img src="doc/imgs/intro-example-show.png" alt="Screenshot"> of our component with an absolutely minimal layout</p>
|
199
199
|
|
200
200
|
<p>It is important to note that actions, buttons, navigation, notifications etc. are handled by the application layout. In this and the subsequent screenshots, we explicitely use minimalism, as it makes the generated HTML clearer.</p>
|
201
201
|
|
@@ -209,7 +209,7 @@
|
|
209
209
|
|
210
210
|
<p>Note that this component is fully functional. All is handled by the class it inherits from:</p>
|
211
211
|
|
212
|
-
<p><img src="doc/imgs/intro-example-destroy.png"
|
212
|
+
<p><img src="doc/imgs/intro-example-destroy.png" alt="Screenshot"> of the destroy component</p>
|
213
213
|
|
214
214
|
<h3 id="label-The+New+component+and+the+Form+component">The New component and the Form component</h3>
|
215
215
|
|
@@ -243,7 +243,7 @@
|
|
243
243
|
|
244
244
|
<p>This is enough to render a fully functional form that creates new users:</p>
|
245
245
|
|
246
|
-
<p><img src="doc/imgs/intro-example-new.png"
|
246
|
+
<p><img src="doc/imgs/intro-example-new.png" alt="New"> form</p>
|
247
247
|
|
248
248
|
<h3 id="label-The+Edit+component">The Edit component</h3>
|
249
249
|
|
@@ -255,7 +255,7 @@
|
|
255
255
|
|
256
256
|
<p>It then looks like this:</p>
|
257
257
|
|
258
|
-
<p><img src="doc/imgs/intro-example-edit.png"
|
258
|
+
<p><img src="doc/imgs/intro-example-edit.png" alt="Edit"> form</p>
|
259
259
|
|
260
260
|
<h3 id="label-The+Index+component">The Index component</h3>
|
261
261
|
|
@@ -307,7 +307,7 @@
|
|
307
307
|
|
308
308
|
<p>The result looks like this:</p>
|
309
309
|
|
310
|
-
<p><img src="doc/imgs/intro-example-index.png"
|
310
|
+
<p><img src="doc/imgs/intro-example-index.png" alt="Index"> component</p>
|
311
311
|
|
312
312
|
<p>Note how the admin’s delete button is disabled due to the feasibility framework. Pointing the mouse at it causes a tooltip saying: “Cannot destroy admins.”, as specified in the model’s prevention.</p>
|
313
313
|
|
@@ -1011,7 +1011,7 @@ The number 8 has the binary form 1000. Enter a number and press ENTER: [8]
|
|
1011
1011
|
<p><code>respond</code> typically shows a flash and redirects to another component.</p>
|
1012
1012
|
</li></ul>
|
1013
1013
|
|
1014
|
-
<p><img src="doc/resourceful_lifecycle.png"
|
1014
|
+
<p><img src="doc/resourceful_lifecycle.png" alt="Graph"> of the complete resourceful lifecycle</p>
|
1015
1015
|
|
1016
1016
|
<h3 id="label-Nesting+resourceful+components">Nesting resourceful components</h3>
|
1017
1017
|
|
@@ -1730,7 +1730,7 @@ my_button = Compony.button(:index, :users, enabled: -> { |controller| control
|
|
1730
1730
|
</div></div>
|
1731
1731
|
|
1732
1732
|
<div id="footer">
|
1733
|
-
Generated on
|
1733
|
+
Generated on Mon Apr 7 13:00:51 2025 by
|
1734
1734
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1735
1735
|
0.9.37 (ruby-3.3.5).
|
1736
1736
|
</div>
|
@@ -102,7 +102,7 @@
|
|
102
102
|
</div>
|
103
103
|
|
104
104
|
<div id="footer">
|
105
|
-
Generated on
|
105
|
+
Generated on Mon Apr 7 13:00:52 2025 by
|
106
106
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
107
107
|
0.9.37 (ruby-3.3.5).
|
108
108
|
</div>
|
data/lib/compony/model_mixin.rb
CHANGED
@@ -72,7 +72,11 @@ module Compony
|
|
72
72
|
# Add a prevention that reflects the `has_many` `dependent' properties. Avoids that users can press buttons that will result in a failed destroy.
|
73
73
|
reflect_on_all_associations.select { |assoc| %i[restrict_with_exception restrict_with_error].include? assoc.options[:dependent] }.each do |assoc|
|
74
74
|
prevent(:destroy, I18n.t('compony.feasibility.has_dependent_models', dependent_class: I18n.t(assoc.klass.model_name.plural.humanize))) do
|
75
|
-
|
75
|
+
if assoc.is_a? ActiveRecord::Reflection::HasOneReflection
|
76
|
+
!public_send(assoc.name).nil?
|
77
|
+
else
|
78
|
+
public_send(assoc.name).any?
|
79
|
+
end
|
76
80
|
end
|
77
81
|
end
|
78
82
|
self.autodetect_feasibilities_completed = true
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: compony
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sandro Kalbermatter
|
8
8
|
- contributors
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: yard
|