compony 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/VERSION +1 -1
  4. data/compony.gemspec +3 -3
  5. data/doc/ComponentGenerator.html +1 -1
  6. data/doc/Components.html +1 -1
  7. data/doc/ComponentsGenerator.html +1 -1
  8. data/doc/Compony/Component.html +136 -43
  9. data/doc/Compony/ComponentMixins/Default/Labelling.html +1 -1
  10. data/doc/Compony/ComponentMixins/Default/Standalone/ResourcefulVerbDsl.html +1 -1
  11. data/doc/Compony/ComponentMixins/Default/Standalone/StandaloneDsl.html +1 -1
  12. data/doc/Compony/ComponentMixins/Default/Standalone/VerbDsl.html +1 -1
  13. data/doc/Compony/ComponentMixins/Default/Standalone.html +1 -1
  14. data/doc/Compony/ComponentMixins/Default.html +1 -1
  15. data/doc/Compony/ComponentMixins/Resourceful.html +1 -1
  16. data/doc/Compony/ComponentMixins.html +1 -1
  17. data/doc/Compony/Components/Button.html +2 -2
  18. data/doc/Compony/Components/Destroy.html +2 -2
  19. data/doc/Compony/Components/Edit.html +18 -18
  20. data/doc/Compony/Components/Form.html +2 -2
  21. data/doc/Compony/Components/New.html +2 -2
  22. data/doc/Compony/Components/WithForm.html +2 -2
  23. data/doc/Compony/Components.html +1 -1
  24. data/doc/Compony/ControllerMixin.html +1 -1
  25. data/doc/Compony/Engine.html +1 -1
  26. data/doc/Compony/MethodAccessibleHash.html +1 -1
  27. data/doc/Compony/ModelFields/Anchormodel.html +1 -1
  28. data/doc/Compony/ModelFields/Association.html +1 -1
  29. data/doc/Compony/ModelFields/Attachment.html +1 -1
  30. data/doc/Compony/ModelFields/Base.html +1 -1
  31. data/doc/Compony/ModelFields/Boolean.html +1 -1
  32. data/doc/Compony/ModelFields/Color.html +1 -1
  33. data/doc/Compony/ModelFields/Currency.html +1 -1
  34. data/doc/Compony/ModelFields/Date.html +1 -1
  35. data/doc/Compony/ModelFields/Datetime.html +1 -1
  36. data/doc/Compony/ModelFields/Decimal.html +1 -1
  37. data/doc/Compony/ModelFields/Email.html +1 -1
  38. data/doc/Compony/ModelFields/Float.html +1 -1
  39. data/doc/Compony/ModelFields/Integer.html +1 -1
  40. data/doc/Compony/ModelFields/Percentage.html +1 -1
  41. data/doc/Compony/ModelFields/Phone.html +1 -1
  42. data/doc/Compony/ModelFields/RichText.html +1 -1
  43. data/doc/Compony/ModelFields/String.html +1 -1
  44. data/doc/Compony/ModelFields/Text.html +1 -1
  45. data/doc/Compony/ModelFields/Time.html +1 -1
  46. data/doc/Compony/ModelFields/Url.html +1 -1
  47. data/doc/Compony/ModelFields.html +1 -1
  48. data/doc/Compony/ModelMixin.html +1 -1
  49. data/doc/Compony/NaturalOrdering.html +1 -1
  50. data/doc/Compony/RequestContext.html +1 -1
  51. data/doc/Compony/Version.html +1 -1
  52. data/doc/Compony/ViewHelpers.html +1 -1
  53. data/doc/Compony.html +1 -1
  54. data/doc/ComponyController.html +1 -1
  55. data/doc/_index.html +1 -1
  56. data/doc/file.README.html +1 -1
  57. data/doc/index.html +1 -1
  58. data/doc/method_list.html +69 -61
  59. data/doc/top-level-namespace.html +1 -1
  60. data/lib/compony/component.rb +14 -3
  61. data/lib/compony/components/edit.rb +4 -0
  62. metadata +2 -2
data/doc/method_list.html CHANGED
@@ -942,7 +942,7 @@
942
942
 
943
943
  <li class="odd ">
944
944
  <div class="item">
945
- <span class='object_link'><a href="Compony/Component.html#render-instance_method" title="Compony::Component#render (method)">#render</a></span>
945
+ <span class='object_link'><a href="Compony/Component.html#remove_content!-instance_method" title="Compony::Component#remove_content! (method)">#remove_content!</a></span>
946
946
  <small>Compony::Component</small>
947
947
  </div>
948
948
  </li>
@@ -950,13 +950,21 @@
950
950
 
951
951
  <li class="even ">
952
952
  <div class="item">
953
- <span class='object_link'><a href="Compony/Component.html#render_actions-instance_method" title="Compony::Component#render_actions (method)">#render_actions</a></span>
953
+ <span class='object_link'><a href="Compony/Component.html#render-instance_method" title="Compony::Component#render (method)">#render</a></span>
954
954
  <small>Compony::Component</small>
955
955
  </div>
956
956
  </li>
957
957
 
958
958
 
959
959
  <li class="odd ">
960
+ <div class="item">
961
+ <span class='object_link'><a href="Compony/Component.html#render_actions-instance_method" title="Compony::Component#render_actions (method)">#render_actions</a></span>
962
+ <small>Compony::Component</small>
963
+ </div>
964
+ </li>
965
+
966
+
967
+ <li class="even ">
960
968
  <div class="item">
961
969
  <span class='object_link'><a href="Compony/ComponentMixins/Default/Standalone.html#render_standalone-instance_method" title="Compony::ComponentMixins::Default::Standalone#render_standalone (method)">#render_standalone</a></span>
962
970
  <small>Compony::ComponentMixins::Default::Standalone</small>
@@ -964,7 +972,7 @@
964
972
  </li>
965
973
 
966
974
 
967
- <li class="even ">
975
+ <li class="odd ">
968
976
  <div class="item">
969
977
  <span class='object_link'><a href="Compony/RequestContext.html#request_context-instance_method" title="Compony::RequestContext#request_context (method)">#request_context</a></span>
970
978
  <small>Compony::RequestContext</small>
@@ -972,7 +980,7 @@
972
980
  </li>
973
981
 
974
982
 
975
- <li class="odd ">
983
+ <li class="even ">
976
984
  <div class="item">
977
985
  <span class='object_link'><a href="Compony/ModelFields/Association.html#resolve_association!-instance_method" title="Compony::ModelFields::Association#resolve_association! (method)">#resolve_association!</a></span>
978
986
  <small>Compony::ModelFields::Association</small>
@@ -980,7 +988,7 @@
980
988
  </li>
981
989
 
982
990
 
983
- <li class="even ">
991
+ <li class="odd ">
984
992
  <div class="item">
985
993
  <span class='object_link'><a href="Compony/Component.html#resourceful%3F-instance_method" title="Compony::Component#resourceful? (method)">#resourceful?</a></span>
986
994
  <small>Compony::Component</small>
@@ -988,7 +996,7 @@
988
996
  </li>
989
997
 
990
998
 
991
- <li class="odd ">
999
+ <li class="even ">
992
1000
  <div class="item">
993
1001
  <span class='object_link'><a href="Compony/ComponentMixins/Resourceful.html#resourceful%3F-instance_method" title="Compony::ComponentMixins::Resourceful#resourceful? (method)">#resourceful?</a></span>
994
1002
  <small>Compony::ComponentMixins::Resourceful</small>
@@ -996,7 +1004,7 @@
996
1004
  </li>
997
1005
 
998
1006
 
999
- <li class="even ">
1007
+ <li class="odd ">
1000
1008
  <div class="item">
1001
1009
  <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>
1002
1010
  <small>Compony::ComponentMixins::Resourceful</small>
@@ -1004,7 +1012,7 @@
1004
1012
  </li>
1005
1013
 
1006
1014
 
1007
- <li class="odd ">
1015
+ <li class="even ">
1008
1016
  <div class="item">
1009
1017
  <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>
1010
1018
  <small>Compony::ComponentMixins::Default::Standalone::VerbDsl</small>
@@ -1012,7 +1020,7 @@
1012
1020
  </li>
1013
1021
 
1014
1022
 
1015
- <li class="even ">
1023
+ <li class="odd ">
1016
1024
  <div class="item">
1017
1025
  <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>
1018
1026
  <small>Compony::RequestContext</small>
@@ -1020,7 +1028,7 @@
1020
1028
  </li>
1021
1029
 
1022
1030
 
1023
- <li class="odd ">
1031
+ <li class="even ">
1024
1032
  <div class="item">
1025
1033
  <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>
1026
1034
  <small>Compony::MethodAccessibleHash</small>
@@ -1028,7 +1036,7 @@
1028
1036
  </li>
1029
1037
 
1030
1038
 
1031
- <li class="even ">
1039
+ <li class="odd ">
1032
1040
  <div class="item">
1033
1041
  <span class='object_link'><a href="Compony.html#root_comp-class_method" title="Compony.root_comp (method)">root_comp</a></span>
1034
1042
  <small>Compony</small>
@@ -1036,7 +1044,7 @@
1036
1044
  </li>
1037
1045
 
1038
1046
 
1039
- <li class="odd ">
1047
+ <li class="even ">
1040
1048
  <div class="item">
1041
1049
  <span class='object_link'><a href="Compony/Component.html#root_comp-instance_method" title="Compony::Component#root_comp (method)">#root_comp</a></span>
1042
1050
  <small>Compony::Component</small>
@@ -1044,7 +1052,7 @@
1044
1052
  </li>
1045
1053
 
1046
1054
 
1047
- <li class="even ">
1055
+ <li class="odd ">
1048
1056
  <div class="item">
1049
1057
  <span class='object_link'><a href="Compony/Component.html#root_comp%3F-instance_method" title="Compony::Component#root_comp? (method)">#root_comp?</a></span>
1050
1058
  <small>Compony::Component</small>
@@ -1052,7 +1060,7 @@
1052
1060
  </li>
1053
1061
 
1054
1062
 
1055
- <li class="odd ">
1063
+ <li class="even ">
1056
1064
  <div class="item">
1057
1065
  <span class='object_link'><a href="Compony/Components/Form.html#schema-instance_method" title="Compony::Components::Form#schema (method)">#schema</a></span>
1058
1066
  <small>Compony::Components::Form</small>
@@ -1060,7 +1068,7 @@
1060
1068
  </li>
1061
1069
 
1062
1070
 
1063
- <li class="even ">
1071
+ <li class="odd ">
1064
1072
  <div class="item">
1065
1073
  <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>
1066
1074
  <small>Compony::Components::Form</small>
@@ -1068,7 +1076,7 @@
1068
1076
  </li>
1069
1077
 
1070
1078
 
1071
- <li class="odd ">
1079
+ <li class="even ">
1072
1080
  <div class="item">
1073
1081
  <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>
1074
1082
  <small>Compony::Components::Form</small>
@@ -1076,7 +1084,7 @@
1076
1084
  </li>
1077
1085
 
1078
1086
 
1079
- <li class="even ">
1087
+ <li class="odd ">
1080
1088
  <div class="item">
1081
1089
  <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>
1082
1090
  <small>Compony::Components::Form</small>
@@ -1084,7 +1092,7 @@
1084
1092
  </li>
1085
1093
 
1086
1094
 
1087
- <li class="odd ">
1095
+ <li class="even ">
1088
1096
  <div class="item">
1089
1097
  <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>
1090
1098
  <small>Compony::ModelFields::Base</small>
@@ -1092,7 +1100,7 @@
1092
1100
  </li>
1093
1101
 
1094
1102
 
1095
- <li class="even ">
1103
+ <li class="odd ">
1096
1104
  <div class="item">
1097
1105
  <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>
1098
1106
  <small>Compony::Components::Form</small>
@@ -1100,7 +1108,7 @@
1100
1108
  </li>
1101
1109
 
1102
1110
 
1103
- <li class="odd ">
1111
+ <li class="even ">
1104
1112
  <div class="item">
1105
1113
  <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>
1106
1114
  <small>Compony::ModelFields::Base</small>
@@ -1108,7 +1116,7 @@
1108
1116
  </li>
1109
1117
 
1110
1118
 
1111
- <li class="even ">
1119
+ <li class="odd ">
1112
1120
  <div class="item">
1113
1121
  <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>
1114
1122
  <small>Compony::ModelFields::Association</small>
@@ -1116,7 +1124,7 @@
1116
1124
  </li>
1117
1125
 
1118
1126
 
1119
- <li class="odd ">
1127
+ <li class="even ">
1120
1128
  <div class="item">
1121
1129
  <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>
1122
1130
  <small>Compony::Components::Form</small>
@@ -1124,7 +1132,7 @@
1124
1132
  </li>
1125
1133
 
1126
1134
 
1127
- <li class="even ">
1135
+ <li class="odd ">
1128
1136
  <div class="item">
1129
1137
  <span class='object_link'><a href="Compony/Component.html#setup-class_method" title="Compony::Component.setup (method)">setup</a></span>
1130
1138
  <small>Compony::Component</small>
@@ -1132,7 +1140,7 @@
1132
1140
  </li>
1133
1141
 
1134
1142
 
1135
- <li class="odd ">
1143
+ <li class="even ">
1136
1144
  <div class="item">
1137
1145
  <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>
1138
1146
  <small>Compony::ModelFields::Base</small>
@@ -1140,7 +1148,7 @@
1140
1148
  </li>
1141
1149
 
1142
1150
 
1143
- <li class="even ">
1151
+ <li class="odd ">
1144
1152
  <div class="item">
1145
1153
  <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>
1146
1154
  <small>Compony::ModelFields::Color</small>
@@ -1148,7 +1156,7 @@
1148
1156
  </li>
1149
1157
 
1150
1158
 
1151
- <li class="odd ">
1159
+ <li class="even ">
1152
1160
  <div class="item">
1153
1161
  <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>
1154
1162
  <small>Compony::ModelFields::RichText</small>
@@ -1156,7 +1164,7 @@
1156
1164
  </li>
1157
1165
 
1158
1166
 
1159
- <li class="even ">
1167
+ <li class="odd ">
1160
1168
  <div class="item">
1161
1169
  <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>
1162
1170
  <small>Compony::ModelFields::Attachment</small>
@@ -1164,7 +1172,7 @@
1164
1172
  </li>
1165
1173
 
1166
1174
 
1167
- <li class="odd ">
1175
+ <li class="even ">
1168
1176
  <div class="item">
1169
1177
  <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>
1170
1178
  <small>Compony::ModelFields::Association</small>
@@ -1172,7 +1180,7 @@
1172
1180
  </li>
1173
1181
 
1174
1182
 
1175
- <li class="even ">
1183
+ <li class="odd ">
1176
1184
  <div class="item">
1177
1185
  <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>
1178
1186
  <small>Compony::ModelFields::Base</small>
@@ -1180,7 +1188,7 @@
1180
1188
  </li>
1181
1189
 
1182
1190
 
1183
- <li class="odd ">
1191
+ <li class="even ">
1184
1192
  <div class="item">
1185
1193
  <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>
1186
1194
  <small>Compony::ModelFields::Anchormodel</small>
@@ -1188,7 +1196,7 @@
1188
1196
  </li>
1189
1197
 
1190
1198
 
1191
- <li class="even ">
1199
+ <li class="odd ">
1192
1200
  <div class="item">
1193
1201
  <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>
1194
1202
  <small>Compony::ModelFields::Association</small>
@@ -1196,7 +1204,7 @@
1196
1204
  </li>
1197
1205
 
1198
1206
 
1199
- <li class="odd ">
1207
+ <li class="even ">
1200
1208
  <div class="item">
1201
1209
  <span class='object_link'><a href="Compony/Component.html#skip_action-instance_method" title="Compony::Component#skip_action (method)">#skip_action</a></span>
1202
1210
  <small>Compony::Component</small>
@@ -1204,7 +1212,7 @@
1204
1212
  </li>
1205
1213
 
1206
1214
 
1207
- <li class="even ">
1215
+ <li class="odd ">
1208
1216
  <div class="item">
1209
1217
  <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>
1210
1218
  <small>Compony::ComponentMixins::Default::Standalone::StandaloneDsl</small>
@@ -1212,7 +1220,7 @@
1212
1220
  </li>
1213
1221
 
1214
1222
 
1215
- <li class="odd ">
1223
+ <li class="even ">
1216
1224
  <div class="item">
1217
1225
  <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>
1218
1226
  <small>Compony::Components::Form</small>
@@ -1220,7 +1228,7 @@
1220
1228
  </li>
1221
1229
 
1222
1230
 
1223
- <li class="even ">
1231
+ <li class="odd ">
1224
1232
  <div class="item">
1225
1233
  <span class='object_link'><a href="Compony/ComponentMixins/Default/Standalone.html#standalone-instance_method" title="Compony::ComponentMixins::Default::Standalone#standalone (method)">#standalone</a></span>
1226
1234
  <small>Compony::ComponentMixins::Default::Standalone</small>
@@ -1228,7 +1236,7 @@
1228
1236
  </li>
1229
1237
 
1230
1238
 
1231
- <li class="odd ">
1239
+ <li class="even ">
1232
1240
  <div class="item">
1233
1241
  <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>
1234
1242
  <small>Compony::ComponentMixins::Default::Standalone</small>
@@ -1236,7 +1244,7 @@
1236
1244
  </li>
1237
1245
 
1238
1246
 
1239
- <li class="even ">
1247
+ <li class="odd ">
1240
1248
  <div class="item">
1241
1249
  <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>
1242
1250
  <small>Compony::ComponentMixins::Resourceful</small>
@@ -1244,7 +1252,7 @@
1244
1252
  </li>
1245
1253
 
1246
1254
 
1247
- <li class="odd ">
1255
+ <li class="even ">
1248
1256
  <div class="item">
1249
1257
  <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>
1250
1258
  <small>Compony::ComponentMixins::Default::Standalone::ResourcefulVerbDsl</small>
@@ -1252,7 +1260,7 @@
1252
1260
  </li>
1253
1261
 
1254
1262
 
1255
- <li class="even ">
1263
+ <li class="odd ">
1256
1264
  <div class="item">
1257
1265
  <span class='object_link'><a href="Compony/Component.html#sub_comp-instance_method" title="Compony::Component#sub_comp (method)">#sub_comp</a></span>
1258
1266
  <small>Compony::Component</small>
@@ -1260,7 +1268,7 @@
1260
1268
  </li>
1261
1269
 
1262
1270
 
1263
- <li class="odd ">
1271
+ <li class="even ">
1264
1272
  <div class="item">
1265
1273
  <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>
1266
1274
  <small>Compony::Components::WithForm</small>
@@ -1268,7 +1276,7 @@
1268
1276
  </li>
1269
1277
 
1270
1278
 
1271
- <li class="even ">
1279
+ <li class="odd ">
1272
1280
  <div class="item">
1273
1281
  <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>
1274
1282
  <small>Compony::Components::WithForm</small>
@@ -1276,7 +1284,7 @@
1276
1284
  </li>
1277
1285
 
1278
1286
 
1279
- <li class="odd ">
1287
+ <li class="even ">
1280
1288
  <div class="item">
1281
1289
  <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>
1282
1290
  <small>Compony::ComponentMixins::Default::Standalone::VerbDsl</small>
@@ -1284,7 +1292,7 @@
1284
1292
  </li>
1285
1293
 
1286
1294
 
1287
- <li class="even ">
1295
+ <li class="odd ">
1288
1296
  <div class="item">
1289
1297
  <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>
1290
1298
  <small>Compony::ComponentMixins::Default::Standalone::StandaloneDsl</small>
@@ -1292,7 +1300,7 @@
1292
1300
  </li>
1293
1301
 
1294
1302
 
1295
- <li class="odd ">
1303
+ <li class="even ">
1296
1304
  <div class="item">
1297
1305
  <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>
1298
1306
  <small>Compony::ComponentMixins::Default::Standalone::ResourcefulVerbDsl</small>
@@ -1300,7 +1308,7 @@
1300
1308
  </li>
1301
1309
 
1302
1310
 
1303
- <li class="even ">
1311
+ <li class="odd ">
1304
1312
  <div class="item">
1305
1313
  <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>
1306
1314
  <small>Compony::ModelFields::Base</small>
@@ -1308,7 +1316,7 @@
1308
1316
  </li>
1309
1317
 
1310
1318
 
1311
- <li class="odd ">
1319
+ <li class="even ">
1312
1320
  <div class="item">
1313
1321
  <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>
1314
1322
  <small>Compony::ModelFields::Url</small>
@@ -1316,7 +1324,7 @@
1316
1324
  </li>
1317
1325
 
1318
1326
 
1319
- <li class="even ">
1327
+ <li class="odd ">
1320
1328
  <div class="item">
1321
1329
  <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>
1322
1330
  <small>Compony::ModelFields::Base</small>
@@ -1324,7 +1332,7 @@
1324
1332
  </li>
1325
1333
 
1326
1334
 
1327
- <li class="odd ">
1335
+ <li class="even ">
1328
1336
  <div class="item">
1329
1337
  <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>
1330
1338
  <small>Compony::ModelFields::Date</small>
@@ -1332,7 +1340,7 @@
1332
1340
  </li>
1333
1341
 
1334
1342
 
1335
- <li class="even ">
1343
+ <li class="odd ">
1336
1344
  <div class="item">
1337
1345
  <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>
1338
1346
  <small>Compony::ModelFields::Color</small>
@@ -1340,7 +1348,7 @@
1340
1348
  </li>
1341
1349
 
1342
1350
 
1343
- <li class="odd ">
1351
+ <li class="even ">
1344
1352
  <div class="item">
1345
1353
  <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>
1346
1354
  <small>Compony::ModelFields::Email</small>
@@ -1348,7 +1356,7 @@
1348
1356
  </li>
1349
1357
 
1350
1358
 
1351
- <li class="even ">
1359
+ <li class="odd ">
1352
1360
  <div class="item">
1353
1361
  <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>
1354
1362
  <small>Compony::ModelFields::Phone</small>
@@ -1356,7 +1364,7 @@
1356
1364
  </li>
1357
1365
 
1358
1366
 
1359
- <li class="odd ">
1367
+ <li class="even ">
1360
1368
  <div class="item">
1361
1369
  <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>
1362
1370
  <small>Compony::ModelFields::Boolean</small>
@@ -1364,7 +1372,7 @@
1364
1372
  </li>
1365
1373
 
1366
1374
 
1367
- <li class="even ">
1375
+ <li class="odd ">
1368
1376
  <div class="item">
1369
1377
  <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>
1370
1378
  <small>Compony::ModelFields::Currency</small>
@@ -1372,7 +1380,7 @@
1372
1380
  </li>
1373
1381
 
1374
1382
 
1375
- <li class="odd ">
1383
+ <li class="even ">
1376
1384
  <div class="item">
1377
1385
  <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>
1378
1386
  <small>Compony::ModelFields::Datetime</small>
@@ -1380,7 +1388,7 @@
1380
1388
  </li>
1381
1389
 
1382
1390
 
1383
- <li class="even ">
1391
+ <li class="odd ">
1384
1392
  <div class="item">
1385
1393
  <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>
1386
1394
  <small>Compony::ModelFields::Attachment</small>
@@ -1388,7 +1396,7 @@
1388
1396
  </li>
1389
1397
 
1390
1398
 
1391
- <li class="odd ">
1399
+ <li class="even ">
1392
1400
  <div class="item">
1393
1401
  <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>
1394
1402
  <small>Compony::ModelFields::Percentage</small>
@@ -1396,7 +1404,7 @@
1396
1404
  </li>
1397
1405
 
1398
1406
 
1399
- <li class="even ">
1407
+ <li class="odd ">
1400
1408
  <div class="item">
1401
1409
  <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>
1402
1410
  <small>Compony::ModelFields::Anchormodel</small>
@@ -1404,7 +1412,7 @@
1404
1412
  </li>
1405
1413
 
1406
1414
 
1407
- <li class="odd ">
1415
+ <li class="even ">
1408
1416
  <div class="item">
1409
1417
  <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>
1410
1418
  <small>Compony::ModelFields::Association</small>
@@ -1412,7 +1420,7 @@
1412
1420
  </li>
1413
1421
 
1414
1422
 
1415
- <li class="even ">
1423
+ <li class="odd ">
1416
1424
  <div class="item">
1417
1425
  <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>
1418
1426
  <small>Compony::ComponentMixins::Default::Standalone::StandaloneDsl</small>
@@ -1420,7 +1428,7 @@
1420
1428
  </li>
1421
1429
 
1422
1430
 
1423
- <li class="odd ">
1431
+ <li class="even ">
1424
1432
  <div class="item">
1425
1433
  <span class='object_link'><a href="Compony.html#with_button_defaults-class_method" title="Compony.with_button_defaults (method)">with_button_defaults</a></span>
1426
1434
  <small>Compony</small>
@@ -1428,7 +1436,7 @@
1428
1436
  </li>
1429
1437
 
1430
1438
 
1431
- <li class="even ">
1439
+ <li class="odd ">
1432
1440
  <div class="item">
1433
1441
  <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>
1434
1442
  <small>Compony::Components::Form</small>
@@ -102,7 +102,7 @@
102
102
  </div>
103
103
 
104
104
  <div id="footer">
105
- Generated on Fri May 31 14:28:29 2024 by
105
+ Generated on Sat Jun 1 14:22:42 2024 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.2.2).
108
108
  </div>
@@ -141,9 +141,20 @@ module Compony
141
141
  # Removes a content block. Use this in subclasses if a content block defined in the parent should be removed from the child.
142
142
  # @param [Symbol,String] name Name of the content block that should be removed
143
143
  def remove_content(name)
144
- name = name.to_sym
145
- existing_index = @content_blocks.find_index { |el| el.name == name } || fail("Content block #{name.inspect} not found for removal in #{inspect}.")
146
- @content_blocks.delete_at(existing_index)
144
+ existing_index = @content_blocks.find_index { |el| el.name == name.to_sym }
145
+ if existing_index.nil?
146
+ return false
147
+ else
148
+ @content_blocks.delete_at(existing_index)
149
+ return true
150
+ end
151
+ end
152
+
153
+ # DSL method
154
+ # Removes a content block and fails if the content block was not found.
155
+ # @param [Symbol,String] name Name of the content block that should be removed
156
+ def remove_content!(name)
157
+ remove_content(name) || fail("Content block #{name.inspect} not found for removal in #{inspect}.")
147
158
  end
148
159
 
149
160
  # Renders the component using the controller passsed to it and returns it as a string.
@@ -35,6 +35,10 @@ module Compony
35
35
  Compony.button(:show, @data.send(data_class.owner_model_attr), icon: :xmark, color: :secondary, label: I18n.t('compony.cancel'))
36
36
  end
37
37
 
38
+ content :label do
39
+ h2 component.label
40
+ end
41
+
38
42
  content do
39
43
  concat form_comp.render(controller, data: @data)
40
44
  end
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.3.1
4
+ version: 0.3.2
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: 2024-05-31 00:00:00.000000000 Z
12
+ date: 2024-06-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: yard