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
data/doc/method_list.html
CHANGED
|
@@ -1405,14 +1405,6 @@
|
|
|
1405
1405
|
|
|
1406
1406
|
|
|
1407
1407
|
<li class="odd ">
|
|
1408
|
-
<div class="item">
|
|
1409
|
-
<span class='object_link'><a href="Compony/ComponentMixins/Resourceful.html#resourceful_sub_comp-instance_method" title="Compony::ComponentMixins::Resourceful#resourceful_sub_comp (method)">#resourceful_sub_comp</a></span>
|
|
1410
|
-
<small>Compony::ComponentMixins::Resourceful</small>
|
|
1411
|
-
</div>
|
|
1412
|
-
</li>
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
<li class="even ">
|
|
1416
1408
|
<div class="item">
|
|
1417
1409
|
<span class='object_link'><a href="Compony/ComponentMixins/Default/Standalone/VerbDsl.html#respond-instance_method" title="Compony::ComponentMixins::Default::Standalone::VerbDsl#respond (method)">#respond</a></span>
|
|
1418
1410
|
<small>Compony::ComponentMixins::Default::Standalone::VerbDsl</small>
|
|
@@ -1420,7 +1412,7 @@
|
|
|
1420
1412
|
</li>
|
|
1421
1413
|
|
|
1422
1414
|
|
|
1423
|
-
<li class="
|
|
1415
|
+
<li class="even ">
|
|
1424
1416
|
<div class="item">
|
|
1425
1417
|
<span class='object_link'><a href="Compony/RequestContext.html#respond_to_missing%3F-instance_method" title="Compony::RequestContext#respond_to_missing? (method)">#respond_to_missing?</a></span>
|
|
1426
1418
|
<small>Compony::RequestContext</small>
|
|
@@ -1428,7 +1420,7 @@
|
|
|
1428
1420
|
</li>
|
|
1429
1421
|
|
|
1430
1422
|
|
|
1431
|
-
<li class="
|
|
1423
|
+
<li class="odd ">
|
|
1432
1424
|
<div class="item">
|
|
1433
1425
|
<span class='object_link'><a href="Compony/MethodAccessibleHash.html#respond_to_missing%3F-instance_method" title="Compony::MethodAccessibleHash#respond_to_missing? (method)">#respond_to_missing?</a></span>
|
|
1434
1426
|
<small>Compony::MethodAccessibleHash</small>
|
|
@@ -1436,7 +1428,7 @@
|
|
|
1436
1428
|
</li>
|
|
1437
1429
|
|
|
1438
1430
|
|
|
1439
|
-
<li class="
|
|
1431
|
+
<li class="even ">
|
|
1440
1432
|
<div class="item">
|
|
1441
1433
|
<span class='object_link'><a href="Compony/Components/List.html#results_per_page-instance_method" title="Compony::Components::List#results_per_page (method)">#results_per_page</a></span>
|
|
1442
1434
|
<small>Compony::Components::List</small>
|
|
@@ -1444,7 +1436,7 @@
|
|
|
1444
1436
|
</li>
|
|
1445
1437
|
|
|
1446
1438
|
|
|
1447
|
-
<li class="
|
|
1439
|
+
<li class="odd ">
|
|
1448
1440
|
<div class="item">
|
|
1449
1441
|
<span class='object_link'><a href="Compony.html#root_comp-class_method" title="Compony.root_comp (method)">root_comp</a></span>
|
|
1450
1442
|
<small>Compony</small>
|
|
@@ -1452,7 +1444,7 @@
|
|
|
1452
1444
|
</li>
|
|
1453
1445
|
|
|
1454
1446
|
|
|
1455
|
-
<li class="
|
|
1447
|
+
<li class="even ">
|
|
1456
1448
|
<div class="item">
|
|
1457
1449
|
<span class='object_link'><a href="Compony/Component.html#root_comp-instance_method" title="Compony::Component#root_comp (method)">#root_comp</a></span>
|
|
1458
1450
|
<small>Compony::Component</small>
|
|
@@ -1460,7 +1452,7 @@
|
|
|
1460
1452
|
</li>
|
|
1461
1453
|
|
|
1462
1454
|
|
|
1463
|
-
<li class="
|
|
1455
|
+
<li class="odd ">
|
|
1464
1456
|
<div class="item">
|
|
1465
1457
|
<span class='object_link'><a href="Compony/Component.html#root_comp%3F-instance_method" title="Compony::Component#root_comp? (method)">#root_comp?</a></span>
|
|
1466
1458
|
<small>Compony::Component</small>
|
|
@@ -1468,7 +1460,7 @@
|
|
|
1468
1460
|
</li>
|
|
1469
1461
|
|
|
1470
1462
|
|
|
1471
|
-
<li class="
|
|
1463
|
+
<li class="even ">
|
|
1472
1464
|
<div class="item">
|
|
1473
1465
|
<span class='object_link'><a href="Compony/Components/List.html#row_intents-instance_method" title="Compony::Components::List#row_intents (method)">#row_intents</a></span>
|
|
1474
1466
|
<small>Compony::Components::List</small>
|
|
@@ -1476,7 +1468,7 @@
|
|
|
1476
1468
|
</li>
|
|
1477
1469
|
|
|
1478
1470
|
|
|
1479
|
-
<li class="
|
|
1471
|
+
<li class="odd ">
|
|
1480
1472
|
<div class="item">
|
|
1481
1473
|
<span class='object_link'><a href="Compony/Components/Form.html#schema-instance_method" title="Compony::Components::Form#schema (method)">#schema</a></span>
|
|
1482
1474
|
<small>Compony::Components::Form</small>
|
|
@@ -1484,7 +1476,7 @@
|
|
|
1484
1476
|
</li>
|
|
1485
1477
|
|
|
1486
1478
|
|
|
1487
|
-
<li class="
|
|
1479
|
+
<li class="even ">
|
|
1488
1480
|
<div class="item">
|
|
1489
1481
|
<span class='object_link'><a href="Compony/Components/Form.html#schema_block_for-instance_method" title="Compony::Components::Form#schema_block_for (method)">#schema_block_for</a></span>
|
|
1490
1482
|
<small>Compony::Components::Form</small>
|
|
@@ -1492,7 +1484,7 @@
|
|
|
1492
1484
|
</li>
|
|
1493
1485
|
|
|
1494
1486
|
|
|
1495
|
-
<li class="
|
|
1487
|
+
<li class="odd ">
|
|
1496
1488
|
<div class="item">
|
|
1497
1489
|
<span class='object_link'><a href="Compony/Components/Form.html#schema_field-instance_method" title="Compony::Components::Form#schema_field (method)">#schema_field</a></span>
|
|
1498
1490
|
<small>Compony::Components::Form</small>
|
|
@@ -1500,7 +1492,7 @@
|
|
|
1500
1492
|
</li>
|
|
1501
1493
|
|
|
1502
1494
|
|
|
1503
|
-
<li class="
|
|
1495
|
+
<li class="even ">
|
|
1504
1496
|
<div class="item">
|
|
1505
1497
|
<span class='object_link'><a href="Compony/Components/Form.html#schema_fields-instance_method" title="Compony::Components::Form#schema_fields (method)">#schema_fields</a></span>
|
|
1506
1498
|
<small>Compony::Components::Form</small>
|
|
@@ -1508,7 +1500,7 @@
|
|
|
1508
1500
|
</li>
|
|
1509
1501
|
|
|
1510
1502
|
|
|
1511
|
-
<li class="
|
|
1503
|
+
<li class="odd ">
|
|
1512
1504
|
<div class="item">
|
|
1513
1505
|
<span class='object_link'><a href="Compony/ModelFields/Base.html#schema_key-instance_method" title="Compony::ModelFields::Base#schema_key (method)">#schema_key</a></span>
|
|
1514
1506
|
<small>Compony::ModelFields::Base</small>
|
|
@@ -1516,7 +1508,7 @@
|
|
|
1516
1508
|
</li>
|
|
1517
1509
|
|
|
1518
1510
|
|
|
1519
|
-
<li class="
|
|
1511
|
+
<li class="even ">
|
|
1520
1512
|
<div class="item">
|
|
1521
1513
|
<span class='object_link'><a href="Compony/Components/Form.html#schema_line-instance_method" title="Compony::Components::Form#schema_line (method)">#schema_line</a></span>
|
|
1522
1514
|
<small>Compony::Components::Form</small>
|
|
@@ -1524,7 +1516,7 @@
|
|
|
1524
1516
|
</li>
|
|
1525
1517
|
|
|
1526
1518
|
|
|
1527
|
-
<li class="
|
|
1519
|
+
<li class="odd ">
|
|
1528
1520
|
<div class="item">
|
|
1529
1521
|
<span class='object_link'><a href="Compony/ModelFields/Base.html#schema_line-instance_method" title="Compony::ModelFields::Base#schema_line (method)">#schema_line</a></span>
|
|
1530
1522
|
<small>Compony::ModelFields::Base</small>
|
|
@@ -1532,7 +1524,7 @@
|
|
|
1532
1524
|
</li>
|
|
1533
1525
|
|
|
1534
1526
|
|
|
1535
|
-
<li class="
|
|
1527
|
+
<li class="even ">
|
|
1536
1528
|
<div class="item">
|
|
1537
1529
|
<span class='object_link'><a href="Compony/ModelFields/Association.html#schema_line-instance_method" title="Compony::ModelFields::Association#schema_line (method)">#schema_line</a></span>
|
|
1538
1530
|
<small>Compony::ModelFields::Association</small>
|
|
@@ -1540,7 +1532,7 @@
|
|
|
1540
1532
|
</li>
|
|
1541
1533
|
|
|
1542
1534
|
|
|
1543
|
-
<li class="
|
|
1535
|
+
<li class="odd ">
|
|
1544
1536
|
<div class="item">
|
|
1545
1537
|
<span class='object_link'><a href="Compony/Components/Form.html#schema_pw_field-instance_method" title="Compony::Components::Form#schema_pw_field (method)">#schema_pw_field</a></span>
|
|
1546
1538
|
<small>Compony::Components::Form</small>
|
|
@@ -1548,7 +1540,7 @@
|
|
|
1548
1540
|
</li>
|
|
1549
1541
|
|
|
1550
1542
|
|
|
1551
|
-
<li class="
|
|
1543
|
+
<li class="even ">
|
|
1552
1544
|
<div class="item">
|
|
1553
1545
|
<span class='object_link'><a href="Compony/Components/Form.html#schema_wrapper_key_for-instance_method" title="Compony::Components::Form#schema_wrapper_key_for (method)">#schema_wrapper_key_for</a></span>
|
|
1554
1546
|
<small>Compony::Components::Form</small>
|
|
@@ -1556,7 +1548,7 @@
|
|
|
1556
1548
|
</li>
|
|
1557
1549
|
|
|
1558
1550
|
|
|
1559
|
-
<li class="
|
|
1551
|
+
<li class="odd ">
|
|
1560
1552
|
<div class="item">
|
|
1561
1553
|
<span class='object_link'><a href="Compony/Component.html#setup-class_method" title="Compony::Component.setup (method)">setup</a></span>
|
|
1562
1554
|
<small>Compony::Component</small>
|
|
@@ -1564,7 +1556,7 @@
|
|
|
1564
1556
|
</li>
|
|
1565
1557
|
|
|
1566
1558
|
|
|
1567
|
-
<li class="
|
|
1559
|
+
<li class="even ">
|
|
1568
1560
|
<div class="item">
|
|
1569
1561
|
<span class='object_link'><a href="Compony/ModelFields/Base.html#simpleform_input-instance_method" title="Compony::ModelFields::Base#simpleform_input (method)">#simpleform_input</a></span>
|
|
1570
1562
|
<small>Compony::ModelFields::Base</small>
|
|
@@ -1572,7 +1564,7 @@
|
|
|
1572
1564
|
</li>
|
|
1573
1565
|
|
|
1574
1566
|
|
|
1575
|
-
<li class="
|
|
1567
|
+
<li class="odd ">
|
|
1576
1568
|
<div class="item">
|
|
1577
1569
|
<span class='object_link'><a href="Compony/ModelFields/Color.html#simpleform_input-instance_method" title="Compony::ModelFields::Color#simpleform_input (method)">#simpleform_input</a></span>
|
|
1578
1570
|
<small>Compony::ModelFields::Color</small>
|
|
@@ -1580,7 +1572,7 @@
|
|
|
1580
1572
|
</li>
|
|
1581
1573
|
|
|
1582
1574
|
|
|
1583
|
-
<li class="
|
|
1575
|
+
<li class="even ">
|
|
1584
1576
|
<div class="item">
|
|
1585
1577
|
<span class='object_link'><a href="Compony/ModelFields/RichText.html#simpleform_input-instance_method" title="Compony::ModelFields::RichText#simpleform_input (method)">#simpleform_input</a></span>
|
|
1586
1578
|
<small>Compony::ModelFields::RichText</small>
|
|
@@ -1588,7 +1580,7 @@
|
|
|
1588
1580
|
</li>
|
|
1589
1581
|
|
|
1590
1582
|
|
|
1591
|
-
<li class="
|
|
1583
|
+
<li class="odd ">
|
|
1592
1584
|
<div class="item">
|
|
1593
1585
|
<span class='object_link'><a href="Compony/ModelFields/Attachment.html#simpleform_input-instance_method" title="Compony::ModelFields::Attachment#simpleform_input (method)">#simpleform_input</a></span>
|
|
1594
1586
|
<small>Compony::ModelFields::Attachment</small>
|
|
@@ -1596,7 +1588,7 @@
|
|
|
1596
1588
|
</li>
|
|
1597
1589
|
|
|
1598
1590
|
|
|
1599
|
-
<li class="
|
|
1591
|
+
<li class="even ">
|
|
1600
1592
|
<div class="item">
|
|
1601
1593
|
<span class='object_link'><a href="Compony/ModelFields/Association.html#simpleform_input-instance_method" title="Compony::ModelFields::Association#simpleform_input (method)">#simpleform_input</a></span>
|
|
1602
1594
|
<small>Compony::ModelFields::Association</small>
|
|
@@ -1604,7 +1596,7 @@
|
|
|
1604
1596
|
</li>
|
|
1605
1597
|
|
|
1606
1598
|
|
|
1607
|
-
<li class="
|
|
1599
|
+
<li class="odd ">
|
|
1608
1600
|
<div class="item">
|
|
1609
1601
|
<span class='object_link'><a href="Compony/ModelFields/Base.html#simpleform_input_hidden-instance_method" title="Compony::ModelFields::Base#simpleform_input_hidden (method)">#simpleform_input_hidden</a></span>
|
|
1610
1602
|
<small>Compony::ModelFields::Base</small>
|
|
@@ -1612,7 +1604,7 @@
|
|
|
1612
1604
|
</li>
|
|
1613
1605
|
|
|
1614
1606
|
|
|
1615
|
-
<li class="
|
|
1607
|
+
<li class="even ">
|
|
1616
1608
|
<div class="item">
|
|
1617
1609
|
<span class='object_link'><a href="Compony/ModelFields/Anchormodel.html#simpleform_input_hidden-instance_method" title="Compony::ModelFields::Anchormodel#simpleform_input_hidden (method)">#simpleform_input_hidden</a></span>
|
|
1618
1610
|
<small>Compony::ModelFields::Anchormodel</small>
|
|
@@ -1620,7 +1612,7 @@
|
|
|
1620
1612
|
</li>
|
|
1621
1613
|
|
|
1622
1614
|
|
|
1623
|
-
<li class="
|
|
1615
|
+
<li class="odd ">
|
|
1624
1616
|
<div class="item">
|
|
1625
1617
|
<span class='object_link'><a href="Compony/ModelFields/Association.html#simpleform_input_hidden-instance_method" title="Compony::ModelFields::Association#simpleform_input_hidden (method)">#simpleform_input_hidden</a></span>
|
|
1626
1618
|
<small>Compony::ModelFields::Association</small>
|
|
@@ -1628,7 +1620,7 @@
|
|
|
1628
1620
|
</li>
|
|
1629
1621
|
|
|
1630
1622
|
|
|
1631
|
-
<li class="
|
|
1623
|
+
<li class="even ">
|
|
1632
1624
|
<div class="item">
|
|
1633
1625
|
<span class='object_link'><a href="Compony/ComponentMixins/Default/Standalone/StandaloneDsl.html#skip_authentication!-instance_method" title="Compony::ComponentMixins::Default::Standalone::StandaloneDsl#skip_authentication! (method)">#skip_authentication!</a></span>
|
|
1634
1626
|
<small>Compony::ComponentMixins::Default::Standalone::StandaloneDsl</small>
|
|
@@ -1636,7 +1628,7 @@
|
|
|
1636
1628
|
</li>
|
|
1637
1629
|
|
|
1638
1630
|
|
|
1639
|
-
<li class="
|
|
1631
|
+
<li class="odd ">
|
|
1640
1632
|
<div class="item">
|
|
1641
1633
|
<span class='object_link'><a href="Compony/Components/Form.html#skip_autofocus-instance_method" title="Compony::Components::Form#skip_autofocus (method)">#skip_autofocus</a></span>
|
|
1642
1634
|
<small>Compony::Components::Form</small>
|
|
@@ -1644,7 +1636,7 @@
|
|
|
1644
1636
|
</li>
|
|
1645
1637
|
|
|
1646
1638
|
|
|
1647
|
-
<li class="
|
|
1639
|
+
<li class="even ">
|
|
1648
1640
|
<div class="item">
|
|
1649
1641
|
<span class='object_link'><a href="Compony/Components/List.html#skip_column-instance_method" title="Compony::Components::List#skip_column (method)">#skip_column</a></span>
|
|
1650
1642
|
<small>Compony::Components::List</small>
|
|
@@ -1652,7 +1644,7 @@
|
|
|
1652
1644
|
</li>
|
|
1653
1645
|
|
|
1654
1646
|
|
|
1655
|
-
<li class="
|
|
1647
|
+
<li class="odd ">
|
|
1656
1648
|
<div class="item">
|
|
1657
1649
|
<span class='object_link'><a href="Compony/Components/Show.html#skip_column-instance_method" title="Compony::Components::Show#skip_column (method)">#skip_column</a></span>
|
|
1658
1650
|
<small>Compony::Components::Show</small>
|
|
@@ -1660,7 +1652,7 @@
|
|
|
1660
1652
|
</li>
|
|
1661
1653
|
|
|
1662
1654
|
|
|
1663
|
-
<li class="
|
|
1655
|
+
<li class="even ">
|
|
1664
1656
|
<div class="item">
|
|
1665
1657
|
<span class='object_link'><a href="Compony/ComponentMixins/Default/Standalone/StandaloneDsl.html#skip_forgery_protection!-instance_method" title="Compony::ComponentMixins::Default::Standalone::StandaloneDsl#skip_forgery_protection! (method)">#skip_forgery_protection!</a></span>
|
|
1666
1658
|
<small>Compony::ComponentMixins::Default::Standalone::StandaloneDsl</small>
|
|
@@ -1668,7 +1660,7 @@
|
|
|
1668
1660
|
</li>
|
|
1669
1661
|
|
|
1670
1662
|
|
|
1671
|
-
<li class="
|
|
1663
|
+
<li class="odd ">
|
|
1672
1664
|
<div class="item">
|
|
1673
1665
|
<span class='object_link'><a href="Compony/Components/List.html#sort-instance_method" title="Compony::Components::List#sort (method)">#sort</a></span>
|
|
1674
1666
|
<small>Compony::Components::List</small>
|
|
@@ -1676,7 +1668,7 @@
|
|
|
1676
1668
|
</li>
|
|
1677
1669
|
|
|
1678
1670
|
|
|
1679
|
-
<li class="
|
|
1671
|
+
<li class="even ">
|
|
1680
1672
|
<div class="item">
|
|
1681
1673
|
<span class='object_link'><a href="Compony/Components/List.html#sorting-instance_method" title="Compony::Components::List#sorting (method)">#sorting</a></span>
|
|
1682
1674
|
<small>Compony::Components::List</small>
|
|
@@ -1684,7 +1676,7 @@
|
|
|
1684
1676
|
</li>
|
|
1685
1677
|
|
|
1686
1678
|
|
|
1687
|
-
<li class="
|
|
1679
|
+
<li class="odd ">
|
|
1688
1680
|
<div class="item">
|
|
1689
1681
|
<span class='object_link'><a href="Compony/Components/List.html#sorting_enabled%3F-instance_method" title="Compony::Components::List#sorting_enabled? (method)">#sorting_enabled?</a></span>
|
|
1690
1682
|
<small>Compony::Components::List</small>
|
|
@@ -1692,7 +1684,7 @@
|
|
|
1692
1684
|
</li>
|
|
1693
1685
|
|
|
1694
1686
|
|
|
1695
|
-
<li class="
|
|
1687
|
+
<li class="even ">
|
|
1696
1688
|
<div class="item">
|
|
1697
1689
|
<span class='object_link'><a href="Compony/Components/List.html#sorting_in_filter-instance_method" title="Compony::Components::List#sorting_in_filter (method)">#sorting_in_filter</a></span>
|
|
1698
1690
|
<small>Compony::Components::List</small>
|
|
@@ -1700,7 +1692,7 @@
|
|
|
1700
1692
|
</li>
|
|
1701
1693
|
|
|
1702
1694
|
|
|
1703
|
-
<li class="
|
|
1695
|
+
<li class="odd ">
|
|
1704
1696
|
<div class="item">
|
|
1705
1697
|
<span class='object_link'><a href="Compony/Components/List.html#sorting_in_filter_enabled%3F-instance_method" title="Compony::Components::List#sorting_in_filter_enabled? (method)">#sorting_in_filter_enabled?</a></span>
|
|
1706
1698
|
<small>Compony::Components::List</small>
|
|
@@ -1708,7 +1700,7 @@
|
|
|
1708
1700
|
</li>
|
|
1709
1701
|
|
|
1710
1702
|
|
|
1711
|
-
<li class="
|
|
1703
|
+
<li class="even ">
|
|
1712
1704
|
<div class="item">
|
|
1713
1705
|
<span class='object_link'><a href="Compony/Components/List.html#sorting_in_filter_select_opts-instance_method" title="Compony::Components::List#sorting_in_filter_select_opts (method)">#sorting_in_filter_select_opts</a></span>
|
|
1714
1706
|
<small>Compony::Components::List</small>
|
|
@@ -1716,7 +1708,7 @@
|
|
|
1716
1708
|
</li>
|
|
1717
1709
|
|
|
1718
1710
|
|
|
1719
|
-
<li class="
|
|
1711
|
+
<li class="odd ">
|
|
1720
1712
|
<div class="item">
|
|
1721
1713
|
<span class='object_link'><a href="Compony/Components/List.html#sorting_links-instance_method" title="Compony::Components::List#sorting_links (method)">#sorting_links</a></span>
|
|
1722
1714
|
<small>Compony::Components::List</small>
|
|
@@ -1724,7 +1716,7 @@
|
|
|
1724
1716
|
</li>
|
|
1725
1717
|
|
|
1726
1718
|
|
|
1727
|
-
<li class="
|
|
1719
|
+
<li class="even ">
|
|
1728
1720
|
<div class="item">
|
|
1729
1721
|
<span class='object_link'><a href="Compony/Components/List.html#sorting_links_enabled%3F-instance_method" title="Compony::Components::List#sorting_links_enabled? (method)">#sorting_links_enabled?</a></span>
|
|
1730
1722
|
<small>Compony::Components::List</small>
|
|
@@ -1732,7 +1724,7 @@
|
|
|
1732
1724
|
</li>
|
|
1733
1725
|
|
|
1734
1726
|
|
|
1735
|
-
<li class="
|
|
1727
|
+
<li class="odd ">
|
|
1736
1728
|
<div class="item">
|
|
1737
1729
|
<span class='object_link'><a href="Compony/Components/List.html#sorts-instance_method" title="Compony::Components::List#sorts (method)">#sorts</a></span>
|
|
1738
1730
|
<small>Compony::Components::List</small>
|
|
@@ -1740,7 +1732,7 @@
|
|
|
1740
1732
|
</li>
|
|
1741
1733
|
|
|
1742
1734
|
|
|
1743
|
-
<li class="
|
|
1735
|
+
<li class="even ">
|
|
1744
1736
|
<div class="item">
|
|
1745
1737
|
<span class='object_link'><a href="Compony/ComponentMixins/Default/Standalone.html#standalone-instance_method" title="Compony::ComponentMixins::Default::Standalone#standalone (method)">#standalone</a></span>
|
|
1746
1738
|
<small>Compony::ComponentMixins::Default::Standalone</small>
|
|
@@ -1748,7 +1740,7 @@
|
|
|
1748
1740
|
</li>
|
|
1749
1741
|
|
|
1750
1742
|
|
|
1751
|
-
<li class="
|
|
1743
|
+
<li class="odd ">
|
|
1752
1744
|
<div class="item">
|
|
1753
1745
|
<span class='object_link'><a href="Compony/ComponentMixins/Default/Standalone.html#standalone_access_permitted_for%3F-instance_method" title="Compony::ComponentMixins::Default::Standalone#standalone_access_permitted_for? (method)">#standalone_access_permitted_for?</a></span>
|
|
1754
1746
|
<small>Compony::ComponentMixins::Default::Standalone</small>
|
|
@@ -1756,7 +1748,7 @@
|
|
|
1756
1748
|
</li>
|
|
1757
1749
|
|
|
1758
1750
|
|
|
1759
|
-
<li class="
|
|
1751
|
+
<li class="even ">
|
|
1760
1752
|
<div class="item">
|
|
1761
1753
|
<span class='object_link'><a href="Compony/ComponentMixins/Resourceful.html#store_data-instance_method" title="Compony::ComponentMixins::Resourceful#store_data (method)">#store_data</a></span>
|
|
1762
1754
|
<small>Compony::ComponentMixins::Resourceful</small>
|
|
@@ -1764,7 +1756,7 @@
|
|
|
1764
1756
|
</li>
|
|
1765
1757
|
|
|
1766
1758
|
|
|
1767
|
-
<li class="
|
|
1759
|
+
<li class="odd ">
|
|
1768
1760
|
<div class="item">
|
|
1769
1761
|
<span class='object_link'><a href="Compony/ComponentMixins/Default/Standalone/ResourcefulVerbDsl.html#store_data-instance_method" title="Compony::ComponentMixins::Default::Standalone::ResourcefulVerbDsl#store_data (method)">#store_data</a></span>
|
|
1770
1762
|
<small>Compony::ComponentMixins::Default::Standalone::ResourcefulVerbDsl</small>
|
|
@@ -1772,7 +1764,7 @@
|
|
|
1772
1764
|
</li>
|
|
1773
1765
|
|
|
1774
1766
|
|
|
1775
|
-
<li class="
|
|
1767
|
+
<li class="even ">
|
|
1776
1768
|
<div class="item">
|
|
1777
1769
|
<span class='object_link'><a href="Compony/Component.html#sub_comp-instance_method" title="Compony::Component#sub_comp (method)">#sub_comp</a></span>
|
|
1778
1770
|
<small>Compony::Component</small>
|
|
@@ -1780,7 +1772,7 @@
|
|
|
1780
1772
|
</li>
|
|
1781
1773
|
|
|
1782
1774
|
|
|
1783
|
-
<li class="
|
|
1775
|
+
<li class="odd ">
|
|
1784
1776
|
<div class="item">
|
|
1785
1777
|
<span class='object_link'><a href="Compony/Components/WithForm.html#submit_path-instance_method" title="Compony::Components::WithForm#submit_path (method)">#submit_path</a></span>
|
|
1786
1778
|
<small>Compony::Components::WithForm</small>
|
|
@@ -1788,7 +1780,7 @@
|
|
|
1788
1780
|
</li>
|
|
1789
1781
|
|
|
1790
1782
|
|
|
1791
|
-
<li class="
|
|
1783
|
+
<li class="even ">
|
|
1792
1784
|
<div class="item">
|
|
1793
1785
|
<span class='object_link'><a href="Compony/Components/WithForm.html#submit_verb-instance_method" title="Compony::Components::WithForm#submit_verb (method)">#submit_verb</a></span>
|
|
1794
1786
|
<small>Compony::Components::WithForm</small>
|
|
@@ -1796,7 +1788,7 @@
|
|
|
1796
1788
|
</li>
|
|
1797
1789
|
|
|
1798
1790
|
|
|
1799
|
-
<li class="
|
|
1791
|
+
<li class="odd ">
|
|
1800
1792
|
<div class="item">
|
|
1801
1793
|
<span class='object_link'><a href="Compony/ComponentMixins/Default/Standalone/VerbDsl.html#to_conf-instance_method" title="Compony::ComponentMixins::Default::Standalone::VerbDsl#to_conf (method)">#to_conf</a></span>
|
|
1802
1794
|
<small>Compony::ComponentMixins::Default::Standalone::VerbDsl</small>
|
|
@@ -1804,7 +1796,7 @@
|
|
|
1804
1796
|
</li>
|
|
1805
1797
|
|
|
1806
1798
|
|
|
1807
|
-
<li class="
|
|
1799
|
+
<li class="even ">
|
|
1808
1800
|
<div class="item">
|
|
1809
1801
|
<span class='object_link'><a href="Compony/ComponentMixins/Default/Standalone/StandaloneDsl.html#to_conf-instance_method" title="Compony::ComponentMixins::Default::Standalone::StandaloneDsl#to_conf (method)">#to_conf</a></span>
|
|
1810
1802
|
<small>Compony::ComponentMixins::Default::Standalone::StandaloneDsl</small>
|
|
@@ -1812,7 +1804,7 @@
|
|
|
1812
1804
|
</li>
|
|
1813
1805
|
|
|
1814
1806
|
|
|
1815
|
-
<li class="
|
|
1807
|
+
<li class="odd ">
|
|
1816
1808
|
<div class="item">
|
|
1817
1809
|
<span class='object_link'><a href="Compony/ComponentMixins/Default/Standalone/ResourcefulVerbDsl.html#to_conf-instance_method" title="Compony::ComponentMixins::Default::Standalone::ResourcefulVerbDsl#to_conf (method)">#to_conf</a></span>
|
|
1818
1810
|
<small>Compony::ComponentMixins::Default::Standalone::ResourcefulVerbDsl</small>
|
|
@@ -1820,7 +1812,7 @@
|
|
|
1820
1812
|
</li>
|
|
1821
1813
|
|
|
1822
1814
|
|
|
1823
|
-
<li class="
|
|
1815
|
+
<li class="even ">
|
|
1824
1816
|
<div class="item">
|
|
1825
1817
|
<span class='object_link'><a href="Compony/ModelFields/Base.html#transform_and_join-instance_method" title="Compony::ModelFields::Base#transform_and_join (method)">#transform_and_join</a></span>
|
|
1826
1818
|
<small>Compony::ModelFields::Base</small>
|
|
@@ -1828,7 +1820,7 @@
|
|
|
1828
1820
|
</li>
|
|
1829
1821
|
|
|
1830
1822
|
|
|
1831
|
-
<li class="
|
|
1823
|
+
<li class="odd ">
|
|
1832
1824
|
<div class="item">
|
|
1833
1825
|
<span class='object_link'><a href="Compony/ModelFields/Url.html#value_for-instance_method" title="Compony::ModelFields::Url#value_for (method)">#value_for</a></span>
|
|
1834
1826
|
<small>Compony::ModelFields::Url</small>
|
|
@@ -1836,7 +1828,7 @@
|
|
|
1836
1828
|
</li>
|
|
1837
1829
|
|
|
1838
1830
|
|
|
1839
|
-
<li class="
|
|
1831
|
+
<li class="even ">
|
|
1840
1832
|
<div class="item">
|
|
1841
1833
|
<span class='object_link'><a href="Compony/ModelFields/Base.html#value_for-instance_method" title="Compony::ModelFields::Base#value_for (method)">#value_for</a></span>
|
|
1842
1834
|
<small>Compony::ModelFields::Base</small>
|
|
@@ -1844,7 +1836,7 @@
|
|
|
1844
1836
|
</li>
|
|
1845
1837
|
|
|
1846
1838
|
|
|
1847
|
-
<li class="
|
|
1839
|
+
<li class="odd ">
|
|
1848
1840
|
<div class="item">
|
|
1849
1841
|
<span class='object_link'><a href="Compony/ModelFields/Date.html#value_for-instance_method" title="Compony::ModelFields::Date#value_for (method)">#value_for</a></span>
|
|
1850
1842
|
<small>Compony::ModelFields::Date</small>
|
|
@@ -1852,7 +1844,7 @@
|
|
|
1852
1844
|
</li>
|
|
1853
1845
|
|
|
1854
1846
|
|
|
1855
|
-
<li class="
|
|
1847
|
+
<li class="even ">
|
|
1856
1848
|
<div class="item">
|
|
1857
1849
|
<span class='object_link'><a href="Compony/ModelFields/Color.html#value_for-instance_method" title="Compony::ModelFields::Color#value_for (method)">#value_for</a></span>
|
|
1858
1850
|
<small>Compony::ModelFields::Color</small>
|
|
@@ -1860,7 +1852,7 @@
|
|
|
1860
1852
|
</li>
|
|
1861
1853
|
|
|
1862
1854
|
|
|
1863
|
-
<li class="
|
|
1855
|
+
<li class="odd ">
|
|
1864
1856
|
<div class="item">
|
|
1865
1857
|
<span class='object_link'><a href="Compony/ModelFields/Email.html#value_for-instance_method" title="Compony::ModelFields::Email#value_for (method)">#value_for</a></span>
|
|
1866
1858
|
<small>Compony::ModelFields::Email</small>
|
|
@@ -1868,7 +1860,7 @@
|
|
|
1868
1860
|
</li>
|
|
1869
1861
|
|
|
1870
1862
|
|
|
1871
|
-
<li class="
|
|
1863
|
+
<li class="even ">
|
|
1872
1864
|
<div class="item">
|
|
1873
1865
|
<span class='object_link'><a href="Compony/ModelFields/Phone.html#value_for-instance_method" title="Compony::ModelFields::Phone#value_for (method)">#value_for</a></span>
|
|
1874
1866
|
<small>Compony::ModelFields::Phone</small>
|
|
@@ -1876,7 +1868,7 @@
|
|
|
1876
1868
|
</li>
|
|
1877
1869
|
|
|
1878
1870
|
|
|
1879
|
-
<li class="
|
|
1871
|
+
<li class="odd ">
|
|
1880
1872
|
<div class="item">
|
|
1881
1873
|
<span class='object_link'><a href="Compony/ModelFields/Boolean.html#value_for-instance_method" title="Compony::ModelFields::Boolean#value_for (method)">#value_for</a></span>
|
|
1882
1874
|
<small>Compony::ModelFields::Boolean</small>
|
|
@@ -1884,7 +1876,7 @@
|
|
|
1884
1876
|
</li>
|
|
1885
1877
|
|
|
1886
1878
|
|
|
1887
|
-
<li class="
|
|
1879
|
+
<li class="even ">
|
|
1888
1880
|
<div class="item">
|
|
1889
1881
|
<span class='object_link'><a href="Compony/ModelFields/Currency.html#value_for-instance_method" title="Compony::ModelFields::Currency#value_for (method)">#value_for</a></span>
|
|
1890
1882
|
<small>Compony::ModelFields::Currency</small>
|
|
@@ -1892,7 +1884,7 @@
|
|
|
1892
1884
|
</li>
|
|
1893
1885
|
|
|
1894
1886
|
|
|
1895
|
-
<li class="
|
|
1887
|
+
<li class="odd ">
|
|
1896
1888
|
<div class="item">
|
|
1897
1889
|
<span class='object_link'><a href="Compony/ModelFields/Datetime.html#value_for-instance_method" title="Compony::ModelFields::Datetime#value_for (method)">#value_for</a></span>
|
|
1898
1890
|
<small>Compony::ModelFields::Datetime</small>
|
|
@@ -1900,7 +1892,7 @@
|
|
|
1900
1892
|
</li>
|
|
1901
1893
|
|
|
1902
1894
|
|
|
1903
|
-
<li class="
|
|
1895
|
+
<li class="even ">
|
|
1904
1896
|
<div class="item">
|
|
1905
1897
|
<span class='object_link'><a href="Compony/ModelFields/Attachment.html#value_for-instance_method" title="Compony::ModelFields::Attachment#value_for (method)">#value_for</a></span>
|
|
1906
1898
|
<small>Compony::ModelFields::Attachment</small>
|
|
@@ -1908,7 +1900,7 @@
|
|
|
1908
1900
|
</li>
|
|
1909
1901
|
|
|
1910
1902
|
|
|
1911
|
-
<li class="
|
|
1903
|
+
<li class="odd ">
|
|
1912
1904
|
<div class="item">
|
|
1913
1905
|
<span class='object_link'><a href="Compony/ModelFields/Percentage.html#value_for-instance_method" title="Compony::ModelFields::Percentage#value_for (method)">#value_for</a></span>
|
|
1914
1906
|
<small>Compony::ModelFields::Percentage</small>
|
|
@@ -1916,7 +1908,7 @@
|
|
|
1916
1908
|
</li>
|
|
1917
1909
|
|
|
1918
1910
|
|
|
1919
|
-
<li class="
|
|
1911
|
+
<li class="even ">
|
|
1920
1912
|
<div class="item">
|
|
1921
1913
|
<span class='object_link'><a href="Compony/ModelFields/Anchormodel.html#value_for-instance_method" title="Compony::ModelFields::Anchormodel#value_for (method)">#value_for</a></span>
|
|
1922
1914
|
<small>Compony::ModelFields::Anchormodel</small>
|
|
@@ -1924,7 +1916,7 @@
|
|
|
1924
1916
|
</li>
|
|
1925
1917
|
|
|
1926
1918
|
|
|
1927
|
-
<li class="
|
|
1919
|
+
<li class="odd ">
|
|
1928
1920
|
<div class="item">
|
|
1929
1921
|
<span class='object_link'><a href="Compony/ModelFields/Association.html#value_for-instance_method" title="Compony::ModelFields::Association#value_for (method)">#value_for</a></span>
|
|
1930
1922
|
<small>Compony::ModelFields::Association</small>
|
|
@@ -1932,7 +1924,7 @@
|
|
|
1932
1924
|
</li>
|
|
1933
1925
|
|
|
1934
1926
|
|
|
1935
|
-
<li class="
|
|
1927
|
+
<li class="even ">
|
|
1936
1928
|
<div class="item">
|
|
1937
1929
|
<span class='object_link'><a href="Compony/ComponentMixins/Default/Standalone/StandaloneDsl.html#verb-instance_method" title="Compony::ComponentMixins::Default::Standalone::StandaloneDsl#verb (method)">#verb</a></span>
|
|
1938
1930
|
<small>Compony::ComponentMixins::Default::Standalone::StandaloneDsl</small>
|
|
@@ -1940,7 +1932,7 @@
|
|
|
1940
1932
|
</li>
|
|
1941
1933
|
|
|
1942
1934
|
|
|
1943
|
-
<li class="
|
|
1935
|
+
<li class="odd ">
|
|
1944
1936
|
<div class="item">
|
|
1945
1937
|
<span class='object_link'><a href="Compony/Components/Form.html#with_simpleform-instance_method" title="Compony::Components::Form#with_simpleform (method)">#with_simpleform</a></span>
|
|
1946
1938
|
<small>Compony::Components::Form</small>
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
</div>
|
|
103
103
|
|
|
104
104
|
<div id="footer">
|
|
105
|
-
Generated on
|
|
105
|
+
Generated on Fri Dec 12 16:04:21 2025 by
|
|
106
106
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
107
107
|
0.9.34 (ruby-3.3.5).
|
|
108
108
|
</div>
|
|
@@ -31,13 +31,6 @@ module Compony
|
|
|
31
31
|
@data_class ||= new_data_class || family_name.singularize.camelize.constantize
|
|
32
32
|
end
|
|
33
33
|
|
|
34
|
-
# Instanciate a component with `self` as a parent and render it, having it inherit the resource
|
|
35
|
-
def resourceful_sub_comp(component_class, **comp_opts)
|
|
36
|
-
comp_opts[:data] ||= data # Inject additional param before forwarding all of them to super
|
|
37
|
-
comp_opts[:data_class] ||= data_class # Inject additional param before forwarding all of them to super
|
|
38
|
-
sub_comp(component_class, **comp_opts)
|
|
39
|
-
end
|
|
40
|
-
|
|
41
34
|
def resourceful?
|
|
42
35
|
return true
|
|
43
36
|
end
|
|
@@ -5,8 +5,10 @@ module Compony
|
|
|
5
5
|
class Show < Compony::Component
|
|
6
6
|
include Compony::ComponentMixins::Resourceful
|
|
7
7
|
|
|
8
|
+
INT_OR_UUID_REGEX = /(?:\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})/
|
|
9
|
+
|
|
8
10
|
setup do
|
|
9
|
-
standalone path: "/#{family_name}/:id", constraints: { id:
|
|
11
|
+
standalone path: "/#{family_name}/:id", constraints: { id: INT_OR_UUID_REGEX } do
|
|
10
12
|
verb :get do
|
|
11
13
|
authorize { can?(:show, @data) }
|
|
12
14
|
end
|
data/lib/compony/intent.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: compony
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.11.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sandro Kalbermatter
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2025-12-
|
|
12
|
+
date: 2025-12-12 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: yard
|