compony 0.2.2 → 0.2.3

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.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -1
  3. data/CHANGELOG.md +4 -0
  4. data/Gemfile.lock +3 -3
  5. data/Rakefile +1 -1
  6. data/VERSION +1 -1
  7. data/compony.gemspec +4 -4
  8. data/doc/ComponentGenerator.html +1 -1
  9. data/doc/Components.html +1 -1
  10. data/doc/ComponentsGenerator.html +1 -1
  11. data/doc/Compony/Component.html +1 -1
  12. data/doc/Compony/ComponentMixins/Default/Labelling.html +1 -1
  13. data/doc/Compony/ComponentMixins/Default/Standalone/ResourcefulVerbDsl.html +1 -1
  14. data/doc/Compony/ComponentMixins/Default/Standalone/StandaloneDsl.html +1 -1
  15. data/doc/Compony/ComponentMixins/Default/Standalone/VerbDsl.html +1 -1
  16. data/doc/Compony/ComponentMixins/Default/Standalone.html +1 -1
  17. data/doc/Compony/ComponentMixins/Default.html +1 -1
  18. data/doc/Compony/ComponentMixins/Resourceful.html +1 -1
  19. data/doc/Compony/ComponentMixins.html +1 -1
  20. data/doc/Compony/Components/Button.html +1 -1
  21. data/doc/Compony/Components/Destroy.html +1 -1
  22. data/doc/Compony/Components/Edit.html +1 -1
  23. data/doc/Compony/Components/Form.html +1 -1
  24. data/doc/Compony/Components/New.html +1 -1
  25. data/doc/Compony/Components/WithForm.html +1 -1
  26. data/doc/Compony/Components.html +1 -1
  27. data/doc/Compony/ControllerMixin.html +1 -1
  28. data/doc/Compony/Engine.html +1 -1
  29. data/doc/Compony/MethodAccessibleHash.html +1 -1
  30. data/doc/Compony/ModelFields/Anchormodel.html +7 -3
  31. data/doc/Compony/ModelFields/Association.html +1 -1
  32. data/doc/Compony/ModelFields/Attachment.html +1 -1
  33. data/doc/Compony/ModelFields/Base.html +1 -1
  34. data/doc/Compony/ModelFields/Boolean.html +1 -1
  35. data/doc/Compony/ModelFields/Color.html +1 -1
  36. data/doc/Compony/ModelFields/Currency.html +1 -1
  37. data/doc/Compony/ModelFields/Date.html +1 -1
  38. data/doc/Compony/ModelFields/Datetime.html +1 -1
  39. data/doc/Compony/ModelFields/Decimal.html +1 -1
  40. data/doc/Compony/ModelFields/Email.html +1 -1
  41. data/doc/Compony/ModelFields/Float.html +1 -1
  42. data/doc/Compony/ModelFields/Integer.html +1 -1
  43. data/doc/Compony/ModelFields/Percentage.html +1 -1
  44. data/doc/Compony/ModelFields/Phone.html +1 -1
  45. data/doc/Compony/ModelFields/RichText.html +1 -1
  46. data/doc/Compony/ModelFields/String.html +1 -1
  47. data/doc/Compony/ModelFields/Text.html +1 -1
  48. data/doc/Compony/ModelFields/Time.html +1 -1
  49. data/doc/Compony/ModelFields/Url.html +1 -1
  50. data/doc/Compony/ModelFields.html +1 -1
  51. data/doc/Compony/ModelMixin.html +1 -1
  52. data/doc/Compony/RequestContext.html +1 -1
  53. data/doc/Compony/Version.html +1 -1
  54. data/doc/Compony/ViewHelpers.html +1 -1
  55. data/doc/Compony.html +1 -1
  56. data/doc/ComponyController.html +1 -1
  57. data/doc/_index.html +1 -1
  58. data/doc/file.README.html +1 -1
  59. data/doc/index.html +1 -1
  60. data/doc/top-level-namespace.html +1 -1
  61. data/lib/compony/model_fields/anchormodel.rb +3 -1
  62. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fde6d013ecb5bcf1288608cbbb4cc1ea29c78a9fcd69a49662d39b3e7a80aff2
4
- data.tar.gz: 05f28621fddc7c0bdd016f0215466f0907a8d605507994b15bbad1ac727e52e7
3
+ metadata.gz: 343aad204370140d7626571fee9723a74230a473ebaa9e62996dabcd2e62fb18
4
+ data.tar.gz: 963637ffe2d7ce07078a9f355bf59d5dd1d64d32d63e23baea186b73d47f9af7
5
5
  SHA512:
6
- metadata.gz: a44257229475cf5c9a2c139484c85de9882f88f952835069d8918eca0e827651158a51952c4140cbbb8f559d293e243244f64261e873f9aa8a5fdf19566c4832
7
- data.tar.gz: 99ce464810f661e5dc19610d0c70c64a178854edc3d6c8e1ef055e0eeb48d64a6aadd2396d5c50f94ad6a5cc64b110a6b6e93056de500522dbea1152e6ac9bee
6
+ metadata.gz: d18e5a751eb0988c8aba2eb54e08823db44cf2a263bb90ff7ed4fcf0b666396c31d6ed3d4e816444e6c87a8c196ce02bc06ff102988bee43a9a25f5518bdb4fd
7
+ data.tar.gz: 05347a07456d100ced4a725a872446392f6caee5d17b04048756db267407c9323640a1edab6f641b6df1e2cdcf55a6174fc8c9ce4b7a01fe987e87e6af2abbb2
data/.gitignore CHANGED
@@ -1,2 +1,3 @@
1
1
  .rubocop.yml
2
- .yardoc
2
+ .yardoc
3
+ /pkg/*
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.2.3
2
+
3
+ - Support collection of Anchormodels in hidden input
4
+
1
5
  # 0.2.2
2
6
 
3
7
  - Adjust gemspec
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- compony (0.2.2.edge)
5
- anchormodel (~> 0.1.5)
4
+ compony (0.2.3.edge)
5
+ anchormodel (~> 0.2.0)
6
6
  cancancan (~> 3.4.0)
7
7
  dslblend (>= 0.0.3)
8
8
  dyny (>= 0.0.3)
@@ -88,7 +88,7 @@ GEM
88
88
  minitest (>= 5.1)
89
89
  mutex_m
90
90
  tzinfo (~> 2.0)
91
- anchormodel (0.1.5)
91
+ anchormodel (0.2.0)
92
92
  rails (~> 7.0)
93
93
  ast (2.4.2)
94
94
  base64 (0.2.0)
data/Rakefile CHANGED
@@ -27,7 +27,7 @@ task :gemspec do
27
27
  s.add_runtime_dependency 'schemacop', '>= 3.0.17'
28
28
  s.add_runtime_dependency 'simple_form', '>= 5.1.0'
29
29
  s.add_runtime_dependency 'dslblend', '>= 0.0.3'
30
- s.add_runtime_dependency 'anchormodel', '~> 0.1.5'
30
+ s.add_runtime_dependency 'anchormodel', '~> 0.2.0'
31
31
  s.add_runtime_dependency 'cancancan', '~> 3.4.0'
32
32
  end
33
33
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.2.3
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.2.2 ruby lib
5
+ # stub: compony 0.2.3 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "compony".freeze
9
- s.version = "0.2.2".freeze
9
+ s.version = "0.2.3".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 = "2024-04-24"
14
+ s.date = "2024-04-27"
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/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/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.0.0".freeze)
17
17
  s.rubygems_version = "3.5.9".freeze
@@ -28,6 +28,6 @@ Gem::Specification.new do |s|
28
28
  s.add_runtime_dependency(%q<schemacop>.freeze, [">= 3.0.17".freeze])
29
29
  s.add_runtime_dependency(%q<simple_form>.freeze, [">= 5.1.0".freeze])
30
30
  s.add_runtime_dependency(%q<dslblend>.freeze, [">= 0.0.3".freeze])
31
- s.add_runtime_dependency(%q<anchormodel>.freeze, ["~> 0.1.5".freeze])
31
+ s.add_runtime_dependency(%q<anchormodel>.freeze, ["~> 0.2.0".freeze])
32
32
  s.add_runtime_dependency(%q<cancancan>.freeze, ["~> 3.4.0".freeze])
33
33
  end
@@ -221,7 +221,7 @@
221
221
  </div>
222
222
 
223
223
  <div id="footer">
224
- Generated on Wed Apr 24 17:14:06 2024 by
224
+ Generated on Sat Apr 27 10:22:12 2024 by
225
225
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
226
226
  0.9.34 (ruby-3.2.2).
227
227
  </div>
data/doc/Components.html CHANGED
@@ -95,7 +95,7 @@
95
95
  </div>
96
96
 
97
97
  <div id="footer">
98
- Generated on Wed Apr 24 17:14:05 2024 by
98
+ Generated on Sat Apr 27 10:22:11 2024 by
99
99
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
100
100
  0.9.34 (ruby-3.2.2).
101
101
  </div>
@@ -193,7 +193,7 @@
193
193
  </div>
194
194
 
195
195
  <div id="footer">
196
- Generated on Wed Apr 24 17:14:06 2024 by
196
+ Generated on Sat Apr 27 10:22:12 2024 by
197
197
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
198
198
  0.9.34 (ruby-3.2.2).
199
199
  </div>
@@ -2088,7 +2088,7 @@
2088
2088
  </div>
2089
2089
 
2090
2090
  <div id="footer">
2091
- Generated on Wed Apr 24 17:14:06 2024 by
2091
+ Generated on Sat Apr 27 10:22:12 2024 by
2092
2092
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2093
2093
  0.9.34 (ruby-3.2.2).
2094
2094
  </div>
@@ -396,7 +396,7 @@
396
396
  </div>
397
397
 
398
398
  <div id="footer">
399
- Generated on Wed Apr 24 17:14:06 2024 by
399
+ Generated on Sat Apr 27 10:22:12 2024 by
400
400
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
401
401
  0.9.34 (ruby-3.2.2).
402
402
  </div>
@@ -529,7 +529,7 @@
529
529
  </div>
530
530
 
531
531
  <div id="footer">
532
- Generated on Wed Apr 24 17:14:06 2024 by
532
+ Generated on Sat Apr 27 10:22:12 2024 by
533
533
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
534
534
  0.9.34 (ruby-3.2.2).
535
535
  </div>
@@ -578,7 +578,7 @@
578
578
  </div>
579
579
 
580
580
  <div id="footer">
581
- Generated on Wed Apr 24 17:14:06 2024 by
581
+ Generated on Sat Apr 27 10:22:12 2024 by
582
582
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
583
583
  0.9.34 (ruby-3.2.2).
584
584
  </div>
@@ -567,7 +567,7 @@
567
567
  </div>
568
568
 
569
569
  <div id="footer">
570
- Generated on Wed Apr 24 17:14:06 2024 by
570
+ Generated on Sat Apr 27 10:22:12 2024 by
571
571
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
572
572
  0.9.34 (ruby-3.2.2).
573
573
  </div>
@@ -682,7 +682,7 @@
682
682
  </div>
683
683
 
684
684
  <div id="footer">
685
- Generated on Wed Apr 24 17:14:06 2024 by
685
+ Generated on Sat Apr 27 10:22:12 2024 by
686
686
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
687
687
  0.9.34 (ruby-3.2.2).
688
688
  </div>
@@ -116,7 +116,7 @@
116
116
  </div>
117
117
 
118
118
  <div id="footer">
119
- Generated on Wed Apr 24 17:14:06 2024 by
119
+ Generated on Sat Apr 27 10:22:12 2024 by
120
120
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
121
121
  0.9.34 (ruby-3.2.2).
122
122
  </div>
@@ -1183,7 +1183,7 @@
1183
1183
  </div>
1184
1184
 
1185
1185
  <div id="footer">
1186
- Generated on Wed Apr 24 17:14:06 2024 by
1186
+ Generated on Sat Apr 27 10:22:12 2024 by
1187
1187
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1188
1188
  0.9.34 (ruby-3.2.2).
1189
1189
  </div>
@@ -116,7 +116,7 @@
116
116
  </div>
117
117
 
118
118
  <div id="footer">
119
- Generated on Wed Apr 24 17:14:06 2024 by
119
+ Generated on Sat Apr 27 10:22:11 2024 by
120
120
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
121
121
  0.9.34 (ruby-3.2.2).
122
122
  </div>
@@ -283,7 +283,7 @@
283
283
  </div>
284
284
 
285
285
  <div id="footer">
286
- Generated on Wed Apr 24 17:14:06 2024 by
286
+ Generated on Sat Apr 27 10:22:12 2024 by
287
287
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
288
288
  0.9.34 (ruby-3.2.2).
289
289
  </div>
@@ -374,7 +374,7 @@
374
374
  </div>
375
375
 
376
376
  <div id="footer">
377
- Generated on Wed Apr 24 17:14:06 2024 by
377
+ Generated on Sat Apr 27 10:22:12 2024 by
378
378
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
379
379
  0.9.34 (ruby-3.2.2).
380
380
  </div>
@@ -452,7 +452,7 @@
452
452
  </div>
453
453
 
454
454
  <div id="footer">
455
- Generated on Wed Apr 24 17:14:06 2024 by
455
+ Generated on Sat Apr 27 10:22:12 2024 by
456
456
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
457
457
  0.9.34 (ruby-3.2.2).
458
458
  </div>
@@ -1102,7 +1102,7 @@
1102
1102
  </div>
1103
1103
 
1104
1104
  <div id="footer">
1105
- Generated on Wed Apr 24 17:14:06 2024 by
1105
+ Generated on Sat Apr 27 10:22:12 2024 by
1106
1106
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1107
1107
  0.9.34 (ruby-3.2.2).
1108
1108
  </div>
@@ -452,7 +452,7 @@
452
452
  </div>
453
453
 
454
454
  <div id="footer">
455
- Generated on Wed Apr 24 17:14:06 2024 by
455
+ Generated on Sat Apr 27 10:22:12 2024 by
456
456
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
457
457
  0.9.34 (ruby-3.2.2).
458
458
  </div>
@@ -518,7 +518,7 @@
518
518
  </div>
519
519
 
520
520
  <div id="footer">
521
- Generated on Wed Apr 24 17:14:06 2024 by
521
+ Generated on Sat Apr 27 10:22:12 2024 by
522
522
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
523
523
  0.9.34 (ruby-3.2.2).
524
524
  </div>
@@ -116,7 +116,7 @@
116
116
  </div>
117
117
 
118
118
  <div id="footer">
119
- Generated on Wed Apr 24 17:14:06 2024 by
119
+ Generated on Sat Apr 27 10:22:11 2024 by
120
120
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
121
121
  0.9.34 (ruby-3.2.2).
122
122
  </div>
@@ -126,7 +126,7 @@
126
126
  </div>
127
127
 
128
128
  <div id="footer">
129
- Generated on Wed Apr 24 17:14:06 2024 by
129
+ Generated on Sat Apr 27 10:22:11 2024 by
130
130
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
131
131
  0.9.34 (ruby-3.2.2).
132
132
  </div>
@@ -123,7 +123,7 @@
123
123
  </div>
124
124
 
125
125
  <div id="footer">
126
- Generated on Wed Apr 24 17:14:06 2024 by
126
+ Generated on Sat Apr 27 10:22:12 2024 by
127
127
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
128
128
  0.9.34 (ruby-3.2.2).
129
129
  </div>
@@ -443,7 +443,7 @@ instance_of_a_hash.roo --&gt; nil
443
443
  </div>
444
444
 
445
445
  <div id="footer">
446
- Generated on Wed Apr 24 17:14:06 2024 by
446
+ Generated on Sat Apr 27 10:22:12 2024 by
447
447
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
448
448
  0.9.34 (ruby-3.2.2).
449
449
  </div>
@@ -311,7 +311,9 @@
311
311
  17
312
312
  18
313
313
  19
314
- 20</pre>
314
+ 20
315
+ 21
316
+ 22</pre>
315
317
  </td>
316
318
  <td>
317
319
  <pre class="code"><span class="info file"># File 'lib/compony/model_fields/anchormodel.rb', line 13</span>
@@ -319,8 +321,10 @@
319
321
  <span class='kw'>def</span> <span class='id identifier rubyid_simpleform_input_hidden'>simpleform_input_hidden</span><span class='lparen'>(</span><span class='id identifier rubyid_form'>form</span><span class='comma'>,</span> <span class='id identifier rubyid__component'>_component</span><span class='comma'>,</span> <span class='label'>name:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='op'>**</span><span class='id identifier rubyid_input_opts'>input_opts</span><span class='rparen'>)</span>
320
322
  <span class='kw'>if</span> <span class='id identifier rubyid_form'>form</span><span class='period'>.</span><span class='id identifier rubyid_object'>object</span>
321
323
  <span class='id identifier rubyid_selected_cst'>selected_cst</span> <span class='op'>=</span> <span class='id identifier rubyid_form'>form</span><span class='period'>.</span><span class='id identifier rubyid_object'>object</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='ivar'>@name</span><span class='rparen'>)</span>
324
+ <span class='id identifier rubyid_am_attr'>am_attr</span> <span class='op'>=</span> <span class='id identifier rubyid_form'>form</span><span class='period'>.</span><span class='id identifier rubyid_object'>object</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_anchormodel_attributes'>anchormodel_attributes</span><span class='lbracket'>[</span><span class='ivar'>@name</span><span class='rbracket'>]</span>
325
+ <span class='id identifier rubyid_am_serializer'>am_serializer</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='id identifier rubyid_am_attr'>am_attr</span><span class='period'>.</span><span class='id identifier rubyid_multiple?'>multiple?</span> <span class='op'>?</span> <span class='op'>::</span><span class='const'>Anchormodel</span><span class='op'>::</span><span class='const'>ActiveModelTypeValueMulti</span> <span class='op'>:</span> <span class='op'>::</span><span class='const'>Anchormodel</span><span class='op'>::</span><span class='const'>ActiveModelTypeValueSingle</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_am_attr'>am_attr</span><span class='rparen'>)</span>
322
326
  <span class='id identifier rubyid_input_opts'>input_opts</span><span class='lbracket'>[</span><span class='symbol'>:input_html</span><span class='rbracket'>]</span> <span class='op'>||=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
323
- <span class='id identifier rubyid_input_opts'>input_opts</span><span class='lbracket'>[</span><span class='symbol'>:input_html</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='symbol'>:value</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_selected_cst'>selected_cst</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>Anchormodel</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='id identifier rubyid_selected_cst'>selected_cst</span><span class='period'>.</span><span class='id identifier rubyid_key'>key</span> <span class='op'>:</span> <span class='id identifier rubyid_selected_cst'>selected_cst</span>
327
+ <span class='id identifier rubyid_input_opts'>input_opts</span><span class='lbracket'>[</span><span class='symbol'>:input_html</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='symbol'>:value</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_am_serializer'>am_serializer</span><span class='period'>.</span><span class='id identifier rubyid_serialize'>serialize</span><span class='lparen'>(</span><span class='id identifier rubyid_selected_cst'>selected_cst</span><span class='rparen'>)</span>
324
328
  <span class='kw'>end</span>
325
329
  <span class='kw'>return</span> <span class='id identifier rubyid_form'>form</span><span class='period'>.</span><span class='id identifier rubyid_input'>input</span> <span class='id identifier rubyid_name'>name</span> <span class='op'>||</span> <span class='ivar'>@name</span><span class='comma'>,</span> <span class='label'>as:</span> <span class='symbol'>:hidden</span><span class='comma'>,</span> <span class='op'>**</span><span class='id identifier rubyid_input_opts'>input_opts</span>
326
330
  <span class='kw'>end</span></pre>
@@ -373,7 +377,7 @@
373
377
  </div>
374
378
 
375
379
  <div id="footer">
376
- Generated on Wed Apr 24 17:14:06 2024 by
380
+ Generated on Sat Apr 27 10:22:12 2024 by
377
381
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
378
382
  0.9.34 (ruby-3.2.2).
379
383
  </div>
@@ -603,7 +603,7 @@
603
603
  </div>
604
604
 
605
605
  <div id="footer">
606
- Generated on Wed Apr 24 17:14:06 2024 by
606
+ Generated on Sat Apr 27 10:22:12 2024 by
607
607
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
608
608
  0.9.34 (ruby-3.2.2).
609
609
  </div>
@@ -295,7 +295,7 @@
295
295
  </div>
296
296
 
297
297
  <div id="footer">
298
- Generated on Wed Apr 24 17:14:06 2024 by
298
+ Generated on Sat Apr 27 10:22:12 2024 by
299
299
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
300
300
  0.9.34 (ruby-3.2.2).
301
301
  </div>
@@ -1056,7 +1056,7 @@
1056
1056
  </div>
1057
1057
 
1058
1058
  <div id="footer">
1059
- Generated on Wed Apr 24 17:14:06 2024 by
1059
+ Generated on Sat Apr 27 10:22:12 2024 by
1060
1060
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1061
1061
  0.9.34 (ruby-3.2.2).
1062
1062
  </div>
@@ -222,7 +222,7 @@
222
222
  </div>
223
223
 
224
224
  <div id="footer">
225
- Generated on Wed Apr 24 17:14:06 2024 by
225
+ Generated on Sat Apr 27 10:22:12 2024 by
226
226
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
227
227
  0.9.34 (ruby-3.2.2).
228
228
  </div>
@@ -289,7 +289,7 @@
289
289
  </div>
290
290
 
291
291
  <div id="footer">
292
- Generated on Wed Apr 24 17:14:06 2024 by
292
+ Generated on Sat Apr 27 10:22:12 2024 by
293
293
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
294
294
  0.9.34 (ruby-3.2.2).
295
295
  </div>
@@ -222,7 +222,7 @@
222
222
  </div>
223
223
 
224
224
  <div id="footer">
225
- Generated on Wed Apr 24 17:14:06 2024 by
225
+ Generated on Sat Apr 27 10:22:12 2024 by
226
226
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
227
227
  0.9.34 (ruby-3.2.2).
228
228
  </div>
@@ -222,7 +222,7 @@
222
222
  </div>
223
223
 
224
224
  <div id="footer">
225
- Generated on Wed Apr 24 17:14:06 2024 by
225
+ Generated on Sat Apr 27 10:22:12 2024 by
226
226
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
227
227
  0.9.34 (ruby-3.2.2).
228
228
  </div>
@@ -222,7 +222,7 @@
222
222
  </div>
223
223
 
224
224
  <div id="footer">
225
- Generated on Wed Apr 24 17:14:06 2024 by
225
+ Generated on Sat Apr 27 10:22:12 2024 by
226
226
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
227
227
  0.9.34 (ruby-3.2.2).
228
228
  </div>
@@ -144,7 +144,7 @@
144
144
  </div>
145
145
 
146
146
  <div id="footer">
147
- Generated on Wed Apr 24 17:14:06 2024 by
147
+ Generated on Sat Apr 27 10:22:12 2024 by
148
148
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
149
149
  0.9.34 (ruby-3.2.2).
150
150
  </div>
@@ -230,7 +230,7 @@
230
230
  </div>
231
231
 
232
232
  <div id="footer">
233
- Generated on Wed Apr 24 17:14:06 2024 by
233
+ Generated on Sat Apr 27 10:22:12 2024 by
234
234
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
235
235
  0.9.34 (ruby-3.2.2).
236
236
  </div>
@@ -144,7 +144,7 @@
144
144
  </div>
145
145
 
146
146
  <div id="footer">
147
- Generated on Wed Apr 24 17:14:06 2024 by
147
+ Generated on Sat Apr 27 10:22:12 2024 by
148
148
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
149
149
  0.9.34 (ruby-3.2.2).
150
150
  </div>
@@ -144,7 +144,7 @@
144
144
  </div>
145
145
 
146
146
  <div id="footer">
147
- Generated on Wed Apr 24 17:14:06 2024 by
147
+ Generated on Sat Apr 27 10:22:12 2024 by
148
148
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
149
149
  0.9.34 (ruby-3.2.2).
150
150
  </div>
@@ -222,7 +222,7 @@
222
222
  </div>
223
223
 
224
224
  <div id="footer">
225
- Generated on Wed Apr 24 17:14:06 2024 by
225
+ Generated on Sat Apr 27 10:22:12 2024 by
226
226
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
227
227
  0.9.34 (ruby-3.2.2).
228
228
  </div>
@@ -291,7 +291,7 @@
291
291
  </div>
292
292
 
293
293
  <div id="footer">
294
- Generated on Wed Apr 24 17:14:06 2024 by
294
+ Generated on Sat Apr 27 10:22:12 2024 by
295
295
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
296
296
  0.9.34 (ruby-3.2.2).
297
297
  </div>
@@ -222,7 +222,7 @@
222
222
  </div>
223
223
 
224
224
  <div id="footer">
225
- Generated on Wed Apr 24 17:14:06 2024 by
225
+ Generated on Sat Apr 27 10:22:12 2024 by
226
226
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
227
227
  0.9.34 (ruby-3.2.2).
228
228
  </div>
@@ -144,7 +144,7 @@
144
144
  </div>
145
145
 
146
146
  <div id="footer">
147
- Generated on Wed Apr 24 17:14:06 2024 by
147
+ Generated on Sat Apr 27 10:22:12 2024 by
148
148
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
149
149
  0.9.34 (ruby-3.2.2).
150
150
  </div>
@@ -144,7 +144,7 @@
144
144
  </div>
145
145
 
146
146
  <div id="footer">
147
- Generated on Wed Apr 24 17:14:06 2024 by
147
+ Generated on Sat Apr 27 10:22:12 2024 by
148
148
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
149
149
  0.9.34 (ruby-3.2.2).
150
150
  </div>
@@ -144,7 +144,7 @@
144
144
  </div>
145
145
 
146
146
  <div id="footer">
147
- Generated on Wed Apr 24 17:14:06 2024 by
147
+ Generated on Sat Apr 27 10:22:12 2024 by
148
148
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
149
149
  0.9.34 (ruby-3.2.2).
150
150
  </div>
@@ -230,7 +230,7 @@
230
230
  </div>
231
231
 
232
232
  <div id="footer">
233
- Generated on Wed Apr 24 17:14:06 2024 by
233
+ Generated on Sat Apr 27 10:22:12 2024 by
234
234
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
235
235
  0.9.34 (ruby-3.2.2).
236
236
  </div>
@@ -116,7 +116,7 @@
116
116
  </div>
117
117
 
118
118
  <div id="footer">
119
- Generated on Wed Apr 24 17:14:06 2024 by
119
+ Generated on Sat Apr 27 10:22:11 2024 by
120
120
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
121
121
  0.9.34 (ruby-3.2.2).
122
122
  </div>
@@ -514,7 +514,7 @@
514
514
  </div>
515
515
 
516
516
  <div id="footer">
517
- Generated on Wed Apr 24 17:14:06 2024 by
517
+ Generated on Sat Apr 27 10:22:11 2024 by
518
518
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
519
519
  0.9.34 (ruby-3.2.2).
520
520
  </div>
@@ -781,7 +781,7 @@
781
781
  </div>
782
782
 
783
783
  <div id="footer">
784
- Generated on Wed Apr 24 17:14:06 2024 by
784
+ Generated on Sat Apr 27 10:22:12 2024 by
785
785
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
786
786
  0.9.34 (ruby-3.2.2).
787
787
  </div>
@@ -129,7 +129,7 @@
129
129
  </div>
130
130
 
131
131
  <div id="footer">
132
- Generated on Wed Apr 24 17:14:05 2024 by
132
+ Generated on Sat Apr 27 10:22:11 2024 by
133
133
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
134
134
  0.9.34 (ruby-3.2.2).
135
135
  </div>
@@ -433,7 +433,7 @@
433
433
  </div>
434
434
 
435
435
  <div id="footer">
436
- Generated on Wed Apr 24 17:14:06 2024 by
436
+ Generated on Sat Apr 27 10:22:11 2024 by
437
437
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
438
438
  0.9.34 (ruby-3.2.2).
439
439
  </div>
data/doc/Compony.html CHANGED
@@ -2146,7 +2146,7 @@
2146
2146
  </div>
2147
2147
 
2148
2148
  <div id="footer">
2149
- Generated on Wed Apr 24 17:14:05 2024 by
2149
+ Generated on Sat Apr 27 10:22:11 2024 by
2150
2150
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2151
2151
  0.9.34 (ruby-3.2.2).
2152
2152
  </div>
@@ -114,7 +114,7 @@
114
114
  </div>
115
115
 
116
116
  <div id="footer">
117
- Generated on Wed Apr 24 17:14:06 2024 by
117
+ Generated on Sat Apr 27 10:22:12 2024 by
118
118
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
119
119
  0.9.34 (ruby-3.2.2).
120
120
  </div>
data/doc/_index.html CHANGED
@@ -559,7 +559,7 @@
559
559
  </div>
560
560
 
561
561
  <div id="footer">
562
- Generated on Wed Apr 24 17:14:04 2024 by
562
+ Generated on Sat Apr 27 10:22:09 2024 by
563
563
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
564
564
  0.9.34 (ruby-3.2.2).
565
565
  </div>
data/doc/file.README.html CHANGED
@@ -1555,7 +1555,7 @@ my_button = Compony.button(:index, :users, enabled: -&gt; { |controller| control
1555
1555
  </div></div>
1556
1556
 
1557
1557
  <div id="footer">
1558
- Generated on Wed Apr 24 17:14:05 2024 by
1558
+ Generated on Sat Apr 27 10:22:11 2024 by
1559
1559
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1560
1560
  0.9.34 (ruby-3.2.2).
1561
1561
  </div>
data/doc/index.html CHANGED
@@ -1555,7 +1555,7 @@ my_button = Compony.button(:index, :users, enabled: -&gt; { |controller| control
1555
1555
  </div></div>
1556
1556
 
1557
1557
  <div id="footer">
1558
- Generated on Wed Apr 24 17:14:04 2024 by
1558
+ Generated on Sat Apr 27 10:22:10 2024 by
1559
1559
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1560
1560
  0.9.34 (ruby-3.2.2).
1561
1561
  </div>
@@ -102,7 +102,7 @@
102
102
  </div>
103
103
 
104
104
  <div id="footer">
105
- Generated on Wed Apr 24 17:14:05 2024 by
105
+ Generated on Sat Apr 27 10:22:11 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>
@@ -13,8 +13,10 @@ module Compony
13
13
  def simpleform_input_hidden(form, _component, name: nil, **input_opts)
14
14
  if form.object
15
15
  selected_cst = form.object.send(@name)
16
+ am_attr = form.object.class.anchormodel_attributes[@name]
17
+ am_serializer = (am_attr.multiple? ? ::Anchormodel::ActiveModelTypeValueMulti : ::Anchormodel::ActiveModelTypeValueSingle).new(am_attr)
16
18
  input_opts[:input_html] ||= {}
17
- input_opts[:input_html][:value] = selected_cst.is_a?(::Anchormodel) ? selected_cst.key : selected_cst
19
+ input_opts[:input_html][:value] = am_serializer.serialize(selected_cst)
18
20
  end
19
21
  return form.input name || @name, as: :hidden, **input_opts
20
22
  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.2.2
4
+ version: 0.2.3
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-04-24 00:00:00.000000000 Z
12
+ date: 2024-04-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: yard
@@ -143,14 +143,14 @@ dependencies:
143
143
  requirements:
144
144
  - - "~>"
145
145
  - !ruby/object:Gem::Version
146
- version: 0.1.5
146
+ version: 0.2.0
147
147
  type: :runtime
148
148
  prerelease: false
149
149
  version_requirements: !ruby/object:Gem::Requirement
150
150
  requirements:
151
151
  - - "~>"
152
152
  - !ruby/object:Gem::Version
153
- version: 0.1.5
153
+ version: 0.2.0
154
154
  - !ruby/object:Gem::Dependency
155
155
  name: cancancan
156
156
  requirement: !ruby/object:Gem::Requirement