compony 0.11.13 → 0.11.14
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 +7 -0
- data/CLAUDE.md +1 -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 +1 -1
- 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 +1 -1
- data/doc/Compony/Components/Edit.html +1 -1
- data/doc/Compony/Components/Form.html +41 -41
- data/doc/Compony/Components/Index.html +1 -1
- data/doc/Compony/Components/List.html +1 -1
- data/doc/Compony/Components/New.html +1 -1
- data/doc/Compony/Components/Show.html +1 -1
- data/doc/Compony/Components/WithForm.html +1 -1
- data/doc/Compony/Components.html +1 -1
- data/doc/Compony/ControllerMixin.html +1 -1
- data/doc/Compony/Engine.html +1 -1
- data/doc/Compony/Intent.html +1 -1
- 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 +13 -13
- 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 +276 -92
- data/doc/ComponyController.html +1 -1
- data/doc/_index.html +1 -1
- data/doc/file.CHANGELOG.html +6 -1
- data/doc/file.README.html +1 -1
- data/doc/file.basic_component.html +1 -1
- data/doc/file.cookbook.html +1 -1
- data/doc/file.destroy.html +1 -1
- data/doc/file.dsl_reference.html +1 -1
- data/doc/file.edit.html +1 -1
- data/doc/file.example.html +1 -1
- data/doc/file.example_advanced.html +1 -1
- data/doc/file.feasibility.html +1 -1
- data/doc/file.form.html +14 -2
- data/doc/file.generators.html +1 -1
- data/doc/file.glossary.html +1 -1
- data/doc/file.gotchas.html +1 -1
- data/doc/file.index.html +1 -1
- data/doc/file.inheritance.html +1 -1
- data/doc/file.installation.html +1 -1
- data/doc/file.integrations.html +1 -1
- data/doc/file.intents.html +1 -1
- data/doc/file.internal_datastructures.html +1 -1
- data/doc/file.list.html +1 -1
- data/doc/file.maintaining.html +1 -1
- data/doc/file.model_fields.html +1 -1
- data/doc/file.nesting.html +1 -1
- data/doc/file.new.html +1 -1
- data/doc/file.ownership.html +1 -1
- data/doc/file.patterns.html +1 -1
- data/doc/file.pre_built_components.html +1 -1
- data/doc/file.resourceful.html +1 -1
- data/doc/file.show.html +1 -1
- data/doc/file.standalone.html +1 -1
- data/doc/file.virtual_models.html +1 -1
- data/doc/file.with_form.html +1 -1
- data/doc/guide/pre_built_components/form.md +21 -2
- data/doc/index.html +1 -1
- data/doc/method_list.html +16 -0
- data/doc/top-level-namespace.html +1 -1
- data/lib/compony/components/form.rb +5 -4
- data/lib/compony/model_mixin.rb +3 -2
- data/lib/compony.rb +19 -0
- data/spec/compony/components/form_spec.rb +31 -0
- data/spec/compony/compony_spec.rb +28 -0
- data/spec/compony/model_mixin_spec.rb +28 -0
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ce87e6223d54972f7a36c9a99cded2c0290adc4910376cbb0cfd2827dfee1886
|
|
4
|
+
data.tar.gz: de71a85d2e5b705f9cc5300fd867668b9c937ea7726a3e4971dd6e1e342fb3e6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 18386a911245027438e4a0551c39219ffe64cf4bb94719d96a56073838d4f622c28cc8a8a5c59426ce2edb87a9dcec28f2612267c0dab87634a36a5f4d104f4f
|
|
7
|
+
data.tar.gz: c300b7981e8c51e91fa67d090777dfada6dc10d5f87478d866531e7f872d6acc327110e8e0fd167493eb263f247b569c9d3a791cfdfbaef0d03d1d9430d4af24
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# 0.11.14
|
|
2
|
+
|
|
3
|
+
- Add `Compony.content_locales=`, the locales for which `multilang: true` generates suffixed fields in the model's
|
|
4
|
+
`field`, the form's `field` and `schema_field`. Defaults to `I18n.available_locales`, so existing apps are unaffected.
|
|
5
|
+
Set it when the app's locales differ from the languages its content is stored in, e.g. regional locales such as
|
|
6
|
+
`:"de-CH"` with content stored per language. Accepts an array or a callable. See the form guide, "Content locales".
|
|
7
|
+
|
|
1
8
|
# 0.11.13
|
|
2
9
|
|
|
3
10
|
- Fix `value_for` raising `NoMethodError` for a field that answers with nil, e.g. a `:percentage` field whose value
|
data/CLAUDE.md
CHANGED
|
@@ -36,6 +36,7 @@ This file orients coding agents. Humans: start at [README.md](/README.md).
|
|
|
36
36
|
| `Compony.authentication_before_action=(sym)` | Hook app auth into Compony. |
|
|
37
37
|
| `Compony.content_before_root_comp { }` / `_after_` | Inject markup around root comp. |
|
|
38
38
|
| `Compony.model_field_namespaces=([...])` | Add custom model-field type classes. |
|
|
39
|
+
| `Compony.content_locales=([...])` | Locales for `multilang: true` fields (default `I18n.available_locales`). |
|
|
39
40
|
|
|
40
41
|
Set the config setters in `config/initializers/compony.rb`.
|
|
41
42
|
|
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.11.
|
|
1
|
+
0.11.14
|
data/compony.gemspec
CHANGED
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
# This file is auto-generated via: 'rake gemspec'.
|
|
3
3
|
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
|
-
# stub: compony 0.11.
|
|
5
|
+
# stub: compony 0.11.14 ruby lib
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |s|
|
|
8
8
|
s.name = "compony".freeze
|
|
9
|
-
s.version = "0.11.
|
|
9
|
+
s.version = "0.11.14".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
14
|
s.date = "1980-01-02"
|
|
15
|
-
s.files = [".gitignore".freeze, ".rspec".freeze, ".ruby-version".freeze, ".yardopts".freeze, "CHANGELOG.md".freeze, "CLAUDE.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/es.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/Buttons.html".freeze, "doc/Compony/Components/Buttons/CssButton.html".freeze, "doc/Compony/Components/Buttons/Link.html".freeze, "doc/Compony/Components/Destroy.html".freeze, "doc/Compony/Components/Edit.html".freeze, "doc/Compony/Components/Form.html".freeze, "doc/Compony/Components/Index.html".freeze, "doc/Compony/Components/List.html".freeze, "doc/Compony/Components/New.html".freeze, "doc/Compony/Components/Show.html".freeze, "doc/Compony/Components/WithForm.html".freeze, "doc/Compony/ControllerMixin.html".freeze, "doc/Compony/Engine.html".freeze, "doc/Compony/ExposedIntentsDsl.html".freeze, "doc/Compony/Intent.html".freeze, "doc/Compony/ManageIntentsDsl.html".freeze, "doc/Compony/MethodAccessibleHash.html".freeze, "doc/Compony/ModelFields.html".freeze, "doc/Compony/ModelFields/Anchormodel.html".freeze, "doc/Compony/ModelFields/Association.html".freeze, "doc/Compony/ModelFields/Attachment.html".freeze, "doc/Compony/ModelFields/Base.html".freeze, "doc/Compony/ModelFields/Boolean.html".freeze, "doc/Compony/ModelFields/Color.html".freeze, "doc/Compony/ModelFields/Currency.html".freeze, "doc/Compony/ModelFields/Date.html".freeze, "doc/Compony/ModelFields/Datetime.html".freeze, "doc/Compony/ModelFields/Decimal.html".freeze, "doc/Compony/ModelFields/Email.html".freeze, "doc/Compony/ModelFields/Float.html".freeze, "doc/Compony/ModelFields/Integer.html".freeze, "doc/Compony/ModelFields/Percentage.html".freeze, "doc/Compony/ModelFields/Phone.html".freeze, "doc/Compony/ModelFields/RichText.html".freeze, "doc/Compony/ModelFields/String.html".freeze, "doc/Compony/ModelFields/Text.html".freeze, "doc/Compony/ModelFields/Time.html".freeze, "doc/Compony/ModelFields/Url.html".freeze, "doc/Compony/ModelMixin.html".freeze, "doc/Compony/NaturalOrdering.html".freeze, "doc/Compony/RequestContext.html".freeze, "doc/Compony/Version.html".freeze, "doc/Compony/ViewHelpers.html".freeze, "doc/Compony/VirtualModel.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.CHANGELOG.html".freeze, "doc/file.README.html".freeze, "doc/file.basic_component.html".freeze, "doc/file.cookbook.html".freeze, "doc/file.destroy.html".freeze, "doc/file.dsl_reference.html".freeze, "doc/file.edit.html".freeze, "doc/file.example.html".freeze, "doc/file.example_advanced.html".freeze, "doc/file.feasibility.html".freeze, "doc/file.form.html".freeze, "doc/file.generators.html".freeze, "doc/file.glossary.html".freeze, "doc/file.gotchas.html".freeze, "doc/file.index.html".freeze, "doc/file.inheritance.html".freeze, "doc/file.installation.html".freeze, "doc/file.integrations.html".freeze, "doc/file.intents.html".freeze, "doc/file.internal_datastructures.html".freeze, "doc/file.list.html".freeze, "doc/file.maintaining.html".freeze, "doc/file.model_fields.html".freeze, "doc/file.nesting.html".freeze, "doc/file.new.html".freeze, "doc/file.ownership.html".freeze, "doc/file.patterns.html".freeze, "doc/file.pre_built_components.html".freeze, "doc/file.resourceful.html".freeze, "doc/file.show.html".freeze, "doc/file.standalone.html".freeze, "doc/file.virtual_models.html".freeze, "doc/file.with_form.html".freeze, "doc/file_list.html".freeze, "doc/frames.html".freeze, "doc/guide/basic_component.md".freeze, "doc/guide/cookbook.md".freeze, "doc/guide/dsl_reference.md".freeze, "doc/guide/example.md".freeze, "doc/guide/example_advanced.md".freeze, "doc/guide/feasibility.md".freeze, "doc/guide/generators.md".freeze, "doc/guide/glossary.md".freeze, "doc/guide/gotchas.md".freeze, "doc/guide/inheritance.md".freeze, "doc/guide/installation.md".freeze, "doc/guide/intents.md".freeze, "doc/guide/internal_datastructures.md".freeze, "doc/guide/maintaining.md".freeze, "doc/guide/model_fields.md".freeze, "doc/guide/nesting.md".freeze, "doc/guide/ownership.md".freeze, "doc/guide/patterns.md".freeze, "doc/guide/pre_built_components.md".freeze, "doc/guide/pre_built_components/destroy.md".freeze, "doc/guide/pre_built_components/edit.md".freeze, "doc/guide/pre_built_components/form.md".freeze, "doc/guide/pre_built_components/index.md".freeze, "doc/guide/pre_built_components/list.md".freeze, "doc/guide/pre_built_components/new.md".freeze, "doc/guide/pre_built_components/show.md".freeze, "doc/guide/pre_built_components/with_form.md".freeze, "doc/guide/resourceful.md".freeze, "doc/guide/standalone.md".freeze, "doc/guide/virtual_models.md".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/integrations.md".freeze, "doc/js/app.js".freeze, "doc/js/full_list.js".freeze, "doc/js/jquery.js".freeze, "doc/llms.txt".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/buttons/css_button.rb".freeze, "lib/compony/components/buttons/link.rb".freeze, "lib/compony/components/destroy.rb".freeze, "lib/compony/components/edit.rb".freeze, "lib/compony/components/form.rb".freeze, "lib/compony/components/index.rb".freeze, "lib/compony/components/list.rb".freeze, "lib/compony/components/new.rb".freeze, "lib/compony/components/show.rb".freeze, "lib/compony/components/with_form.rb".freeze, "lib/compony/controller_mixin.rb".freeze, "lib/compony/engine.rb".freeze, "lib/compony/intent.rb".freeze, "lib/compony/manage_intents_dsl.rb".freeze, "lib/compony/method_accessible_hash.rb".freeze, "lib/compony/model_fields/anchormodel.rb".freeze, "lib/compony/model_fields/association.rb".freeze, "lib/compony/model_fields/attachment.rb".freeze, "lib/compony/model_fields/base.rb".freeze, "lib/compony/model_fields/boolean.rb".freeze, "lib/compony/model_fields/color.rb".freeze, "lib/compony/model_fields/currency.rb".freeze, "lib/compony/model_fields/date.rb".freeze, "lib/compony/model_fields/datetime.rb".freeze, "lib/compony/model_fields/decimal.rb".freeze, "lib/compony/model_fields/email.rb".freeze, "lib/compony/model_fields/float.rb".freeze, "lib/compony/model_fields/integer.rb".freeze, "lib/compony/model_fields/percentage.rb".freeze, "lib/compony/model_fields/phone.rb".freeze, "lib/compony/model_fields/rich_text.rb".freeze, "lib/compony/model_fields/string.rb".freeze, "lib/compony/model_fields/text.rb".freeze, "lib/compony/model_fields/time.rb".freeze, "lib/compony/model_fields/url.rb".freeze, "lib/compony/model_mixin.rb".freeze, "lib/compony/natural_ordering.rb".freeze, "lib/compony/request_context.rb".freeze, "lib/compony/version.rb".freeze, "lib/compony/view_helpers.rb".freeze, "lib/compony/virtual_model.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/index.rb.erb".freeze, "lib/generators/component/templates/list.rb.erb".freeze, "lib/generators/component/templates/new.rb.erb".freeze, "lib/generators/component/templates/show.rb.erb".freeze, "lib/generators/component/templates/with_base_component.rb.erb".freeze, "lib/generators/components/USAGE".freeze, "lib/generators/components/components_generator.rb".freeze, "logo.svg".freeze, "spec/README.md".freeze, "spec/compony/component_spec.rb".freeze, "spec/compony/compony_spec.rb".freeze, "spec/compony/intent_spec.rb".freeze, "spec/compony/method_accessible_hash_spec.rb".freeze, "spec/compony/model_fields_spec.rb".freeze, "spec/compony/model_mixin_spec.rb".freeze, "spec/compony/natural_ordering_spec.rb".freeze, "spec/dummy/app/components/statics/home.rb".freeze, "spec/dummy/app/components/statics/secret.rb".freeze, "spec/dummy/app/components/users/destroy.rb".freeze, "spec/dummy/app/components/users/edit.rb".freeze, "spec/dummy/app/components/users/form.rb".freeze, "spec/dummy/app/components/users/index.rb".freeze, "spec/dummy/app/components/users/new.rb".freeze, "spec/dummy/app/components/users/show.rb".freeze, "spec/dummy/app/controllers/application_controller.rb".freeze, "spec/dummy/app/models/ability.rb".freeze, "spec/dummy/app/models/application_record.rb".freeze, "spec/dummy/app/models/user.rb".freeze, "spec/dummy/app/views/layouts/application.html.erb".freeze, "spec/dummy/config/application.rb".freeze, "spec/dummy/config/database.yml".freeze, "spec/dummy/config/environment.rb".freeze, "spec/dummy/config/initializers/simple_form.rb".freeze, "spec/dummy/config/routes.rb".freeze, "spec/dummy/db/schema.rb".freeze, "spec/rails_helper.rb".freeze, "spec/requests/authorization_spec.rb".freeze, "spec/requests/plain_component_spec.rb".freeze, "spec/requests/routing_spec.rb".freeze, "spec/requests/users_crud_spec.rb".freeze]
|
|
15
|
+
s.files = [".gitignore".freeze, ".rspec".freeze, ".ruby-version".freeze, ".yardopts".freeze, "CHANGELOG.md".freeze, "CLAUDE.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/es.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/Buttons.html".freeze, "doc/Compony/Components/Buttons/CssButton.html".freeze, "doc/Compony/Components/Buttons/Link.html".freeze, "doc/Compony/Components/Destroy.html".freeze, "doc/Compony/Components/Edit.html".freeze, "doc/Compony/Components/Form.html".freeze, "doc/Compony/Components/Index.html".freeze, "doc/Compony/Components/List.html".freeze, "doc/Compony/Components/New.html".freeze, "doc/Compony/Components/Show.html".freeze, "doc/Compony/Components/WithForm.html".freeze, "doc/Compony/ControllerMixin.html".freeze, "doc/Compony/Engine.html".freeze, "doc/Compony/ExposedIntentsDsl.html".freeze, "doc/Compony/Intent.html".freeze, "doc/Compony/ManageIntentsDsl.html".freeze, "doc/Compony/MethodAccessibleHash.html".freeze, "doc/Compony/ModelFields.html".freeze, "doc/Compony/ModelFields/Anchormodel.html".freeze, "doc/Compony/ModelFields/Association.html".freeze, "doc/Compony/ModelFields/Attachment.html".freeze, "doc/Compony/ModelFields/Base.html".freeze, "doc/Compony/ModelFields/Boolean.html".freeze, "doc/Compony/ModelFields/Color.html".freeze, "doc/Compony/ModelFields/Currency.html".freeze, "doc/Compony/ModelFields/Date.html".freeze, "doc/Compony/ModelFields/Datetime.html".freeze, "doc/Compony/ModelFields/Decimal.html".freeze, "doc/Compony/ModelFields/Email.html".freeze, "doc/Compony/ModelFields/Float.html".freeze, "doc/Compony/ModelFields/Integer.html".freeze, "doc/Compony/ModelFields/Percentage.html".freeze, "doc/Compony/ModelFields/Phone.html".freeze, "doc/Compony/ModelFields/RichText.html".freeze, "doc/Compony/ModelFields/String.html".freeze, "doc/Compony/ModelFields/Text.html".freeze, "doc/Compony/ModelFields/Time.html".freeze, "doc/Compony/ModelFields/Url.html".freeze, "doc/Compony/ModelMixin.html".freeze, "doc/Compony/NaturalOrdering.html".freeze, "doc/Compony/RequestContext.html".freeze, "doc/Compony/Version.html".freeze, "doc/Compony/ViewHelpers.html".freeze, "doc/Compony/VirtualModel.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.CHANGELOG.html".freeze, "doc/file.README.html".freeze, "doc/file.basic_component.html".freeze, "doc/file.cookbook.html".freeze, "doc/file.destroy.html".freeze, "doc/file.dsl_reference.html".freeze, "doc/file.edit.html".freeze, "doc/file.example.html".freeze, "doc/file.example_advanced.html".freeze, "doc/file.feasibility.html".freeze, "doc/file.form.html".freeze, "doc/file.generators.html".freeze, "doc/file.glossary.html".freeze, "doc/file.gotchas.html".freeze, "doc/file.index.html".freeze, "doc/file.inheritance.html".freeze, "doc/file.installation.html".freeze, "doc/file.integrations.html".freeze, "doc/file.intents.html".freeze, "doc/file.internal_datastructures.html".freeze, "doc/file.list.html".freeze, "doc/file.maintaining.html".freeze, "doc/file.model_fields.html".freeze, "doc/file.nesting.html".freeze, "doc/file.new.html".freeze, "doc/file.ownership.html".freeze, "doc/file.patterns.html".freeze, "doc/file.pre_built_components.html".freeze, "doc/file.resourceful.html".freeze, "doc/file.show.html".freeze, "doc/file.standalone.html".freeze, "doc/file.virtual_models.html".freeze, "doc/file.with_form.html".freeze, "doc/file_list.html".freeze, "doc/frames.html".freeze, "doc/guide/basic_component.md".freeze, "doc/guide/cookbook.md".freeze, "doc/guide/dsl_reference.md".freeze, "doc/guide/example.md".freeze, "doc/guide/example_advanced.md".freeze, "doc/guide/feasibility.md".freeze, "doc/guide/generators.md".freeze, "doc/guide/glossary.md".freeze, "doc/guide/gotchas.md".freeze, "doc/guide/inheritance.md".freeze, "doc/guide/installation.md".freeze, "doc/guide/intents.md".freeze, "doc/guide/internal_datastructures.md".freeze, "doc/guide/maintaining.md".freeze, "doc/guide/model_fields.md".freeze, "doc/guide/nesting.md".freeze, "doc/guide/ownership.md".freeze, "doc/guide/patterns.md".freeze, "doc/guide/pre_built_components.md".freeze, "doc/guide/pre_built_components/destroy.md".freeze, "doc/guide/pre_built_components/edit.md".freeze, "doc/guide/pre_built_components/form.md".freeze, "doc/guide/pre_built_components/index.md".freeze, "doc/guide/pre_built_components/list.md".freeze, "doc/guide/pre_built_components/new.md".freeze, "doc/guide/pre_built_components/show.md".freeze, "doc/guide/pre_built_components/with_form.md".freeze, "doc/guide/resourceful.md".freeze, "doc/guide/standalone.md".freeze, "doc/guide/virtual_models.md".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/integrations.md".freeze, "doc/js/app.js".freeze, "doc/js/full_list.js".freeze, "doc/js/jquery.js".freeze, "doc/llms.txt".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/buttons/css_button.rb".freeze, "lib/compony/components/buttons/link.rb".freeze, "lib/compony/components/destroy.rb".freeze, "lib/compony/components/edit.rb".freeze, "lib/compony/components/form.rb".freeze, "lib/compony/components/index.rb".freeze, "lib/compony/components/list.rb".freeze, "lib/compony/components/new.rb".freeze, "lib/compony/components/show.rb".freeze, "lib/compony/components/with_form.rb".freeze, "lib/compony/controller_mixin.rb".freeze, "lib/compony/engine.rb".freeze, "lib/compony/intent.rb".freeze, "lib/compony/manage_intents_dsl.rb".freeze, "lib/compony/method_accessible_hash.rb".freeze, "lib/compony/model_fields/anchormodel.rb".freeze, "lib/compony/model_fields/association.rb".freeze, "lib/compony/model_fields/attachment.rb".freeze, "lib/compony/model_fields/base.rb".freeze, "lib/compony/model_fields/boolean.rb".freeze, "lib/compony/model_fields/color.rb".freeze, "lib/compony/model_fields/currency.rb".freeze, "lib/compony/model_fields/date.rb".freeze, "lib/compony/model_fields/datetime.rb".freeze, "lib/compony/model_fields/decimal.rb".freeze, "lib/compony/model_fields/email.rb".freeze, "lib/compony/model_fields/float.rb".freeze, "lib/compony/model_fields/integer.rb".freeze, "lib/compony/model_fields/percentage.rb".freeze, "lib/compony/model_fields/phone.rb".freeze, "lib/compony/model_fields/rich_text.rb".freeze, "lib/compony/model_fields/string.rb".freeze, "lib/compony/model_fields/text.rb".freeze, "lib/compony/model_fields/time.rb".freeze, "lib/compony/model_fields/url.rb".freeze, "lib/compony/model_mixin.rb".freeze, "lib/compony/natural_ordering.rb".freeze, "lib/compony/request_context.rb".freeze, "lib/compony/version.rb".freeze, "lib/compony/view_helpers.rb".freeze, "lib/compony/virtual_model.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/index.rb.erb".freeze, "lib/generators/component/templates/list.rb.erb".freeze, "lib/generators/component/templates/new.rb.erb".freeze, "lib/generators/component/templates/show.rb.erb".freeze, "lib/generators/component/templates/with_base_component.rb.erb".freeze, "lib/generators/components/USAGE".freeze, "lib/generators/components/components_generator.rb".freeze, "logo.svg".freeze, "spec/README.md".freeze, "spec/compony/component_spec.rb".freeze, "spec/compony/components/form_spec.rb".freeze, "spec/compony/compony_spec.rb".freeze, "spec/compony/intent_spec.rb".freeze, "spec/compony/method_accessible_hash_spec.rb".freeze, "spec/compony/model_fields_spec.rb".freeze, "spec/compony/model_mixin_spec.rb".freeze, "spec/compony/natural_ordering_spec.rb".freeze, "spec/dummy/app/components/statics/home.rb".freeze, "spec/dummy/app/components/statics/secret.rb".freeze, "spec/dummy/app/components/users/destroy.rb".freeze, "spec/dummy/app/components/users/edit.rb".freeze, "spec/dummy/app/components/users/form.rb".freeze, "spec/dummy/app/components/users/index.rb".freeze, "spec/dummy/app/components/users/new.rb".freeze, "spec/dummy/app/components/users/show.rb".freeze, "spec/dummy/app/controllers/application_controller.rb".freeze, "spec/dummy/app/models/ability.rb".freeze, "spec/dummy/app/models/application_record.rb".freeze, "spec/dummy/app/models/user.rb".freeze, "spec/dummy/app/views/layouts/application.html.erb".freeze, "spec/dummy/config/application.rb".freeze, "spec/dummy/config/database.yml".freeze, "spec/dummy/config/environment.rb".freeze, "spec/dummy/config/initializers/simple_form.rb".freeze, "spec/dummy/config/routes.rb".freeze, "spec/dummy/db/schema.rb".freeze, "spec/rails_helper.rb".freeze, "spec/requests/authorization_spec.rb".freeze, "spec/requests/plain_component_spec.rb".freeze, "spec/requests/routing_spec.rb".freeze, "spec/requests/users_crud_spec.rb".freeze]
|
|
16
16
|
s.required_ruby_version = Gem::Requirement.new(">= 3.3.5".freeze)
|
|
17
17
|
s.rubygems_version = "4.0.13".freeze
|
|
18
18
|
s.summary = "Compony is a Gem that allows you to write your Rails application in component-style fashion. It combines a controller action and route along \\ with its view into a single Ruby class. This allows writing much DRYer code, using inheritance even in views and much easier refactoring for your Rails \\ applications, helping you to keep the code clean as the application evolves.".freeze
|
data/doc/ComponentGenerator.html
CHANGED
|
@@ -249,7 +249,7 @@
|
|
|
249
249
|
</div>
|
|
250
250
|
|
|
251
251
|
<div id="footer">
|
|
252
|
-
Generated on
|
|
252
|
+
Generated on Wed Oct 7 10:48:21 2026 by
|
|
253
253
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
254
254
|
0.9.34 (ruby-3.4.9).
|
|
255
255
|
</div>
|
data/doc/Components.html
CHANGED
|
@@ -193,7 +193,7 @@
|
|
|
193
193
|
</div>
|
|
194
194
|
|
|
195
195
|
<div id="footer">
|
|
196
|
-
Generated on
|
|
196
|
+
Generated on Wed Oct 7 10:48:21 2026 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.4.9).
|
|
199
199
|
</div>
|
data/doc/Compony/Component.html
CHANGED
|
@@ -2072,7 +2072,7 @@
|
|
|
2072
2072
|
</div>
|
|
2073
2073
|
|
|
2074
2074
|
<div id="footer">
|
|
2075
|
-
Generated on
|
|
2075
|
+
Generated on Wed Oct 7 10:48:20 2026 by
|
|
2076
2076
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
2077
2077
|
0.9.34 (ruby-3.4.9).
|
|
2078
2078
|
</div>
|
|
@@ -477,7 +477,7 @@
|
|
|
477
477
|
</div>
|
|
478
478
|
|
|
479
479
|
<div id="footer">
|
|
480
|
-
Generated on
|
|
480
|
+
Generated on Wed Oct 7 10:48:20 2026 by
|
|
481
481
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
482
482
|
0.9.34 (ruby-3.4.9).
|
|
483
483
|
</div>
|
|
@@ -529,7 +529,7 @@
|
|
|
529
529
|
</div>
|
|
530
530
|
|
|
531
531
|
<div id="footer">
|
|
532
|
-
Generated on
|
|
532
|
+
Generated on Wed Oct 7 10:48:22 2026 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.4.9).
|
|
535
535
|
</div>
|
|
@@ -698,7 +698,7 @@
|
|
|
698
698
|
</div>
|
|
699
699
|
|
|
700
700
|
<div id="footer">
|
|
701
|
-
Generated on
|
|
701
|
+
Generated on Wed Oct 7 10:48:21 2026 by
|
|
702
702
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
703
703
|
0.9.34 (ruby-3.4.9).
|
|
704
704
|
</div>
|
|
@@ -603,7 +603,7 @@
|
|
|
603
603
|
</div>
|
|
604
604
|
|
|
605
605
|
<div id="footer">
|
|
606
|
-
Generated on
|
|
606
|
+
Generated on Wed Oct 7 10:48:21 2026 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.4.9).
|
|
609
609
|
</div>
|
|
@@ -868,7 +868,7 @@
|
|
|
868
868
|
</div>
|
|
869
869
|
|
|
870
870
|
<div id="footer">
|
|
871
|
-
Generated on
|
|
871
|
+
Generated on Wed Oct 7 10:48:20 2026 by
|
|
872
872
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
873
873
|
0.9.34 (ruby-3.4.9).
|
|
874
874
|
</div>
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
</div>
|
|
117
117
|
|
|
118
118
|
<div id="footer">
|
|
119
|
-
Generated on
|
|
119
|
+
Generated on Wed Oct 7 10:48:20 2026 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.4.9).
|
|
122
122
|
</div>
|
|
@@ -1253,7 +1253,7 @@
|
|
|
1253
1253
|
</div>
|
|
1254
1254
|
|
|
1255
1255
|
<div id="footer">
|
|
1256
|
-
Generated on
|
|
1256
|
+
Generated on Wed Oct 7 10:48:20 2026 by
|
|
1257
1257
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1258
1258
|
0.9.34 (ruby-3.4.9).
|
|
1259
1259
|
</div>
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
</div>
|
|
117
117
|
|
|
118
118
|
<div id="footer">
|
|
119
|
-
Generated on
|
|
119
|
+
Generated on Wed Oct 7 10:48:20 2026 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.4.9).
|
|
122
122
|
</div>
|
|
@@ -272,7 +272,7 @@
|
|
|
272
272
|
</div>
|
|
273
273
|
|
|
274
274
|
<div id="footer">
|
|
275
|
-
Generated on
|
|
275
|
+
Generated on Wed Oct 7 10:48:21 2026 by
|
|
276
276
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
277
277
|
0.9.34 (ruby-3.4.9).
|
|
278
278
|
</div>
|
|
@@ -242,7 +242,7 @@
|
|
|
242
242
|
</div>
|
|
243
243
|
|
|
244
244
|
<div id="footer">
|
|
245
|
-
Generated on
|
|
245
|
+
Generated on Wed Oct 7 10:48:21 2026 by
|
|
246
246
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
247
247
|
0.9.34 (ruby-3.4.9).
|
|
248
248
|
</div>
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
</div>
|
|
117
117
|
|
|
118
118
|
<div id="footer">
|
|
119
|
-
Generated on
|
|
119
|
+
Generated on Wed Oct 7 10:48:20 2026 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.4.9).
|
|
122
122
|
</div>
|
|
@@ -428,7 +428,7 @@
|
|
|
428
428
|
</div>
|
|
429
429
|
|
|
430
430
|
<div id="footer">
|
|
431
|
-
Generated on
|
|
431
|
+
Generated on Wed Oct 7 10:48:21 2026 by
|
|
432
432
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
433
433
|
0.9.34 (ruby-3.4.9).
|
|
434
434
|
</div>
|
|
@@ -524,7 +524,7 @@
|
|
|
524
524
|
</div>
|
|
525
525
|
|
|
526
526
|
<div id="footer">
|
|
527
|
-
Generated on
|
|
527
|
+
Generated on Wed Oct 7 10:48:20 2026 by
|
|
528
528
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
529
529
|
0.9.34 (ruby-3.4.9).
|
|
530
530
|
</div>
|
|
@@ -648,12 +648,12 @@
|
|
|
648
648
|
<pre class="lines">
|
|
649
649
|
|
|
650
650
|
|
|
651
|
-
182
|
|
652
651
|
183
|
|
653
|
-
184
|
|
652
|
+
184
|
|
653
|
+
185</pre>
|
|
654
654
|
</td>
|
|
655
655
|
<td>
|
|
656
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line
|
|
656
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line 183</span>
|
|
657
657
|
|
|
658
658
|
<span class='kw'>def</span> <span class='id identifier rubyid_collect'>collect</span><span class='lparen'>(</span><span class='op'>...</span><span class='rparen'>)</span>
|
|
659
659
|
<span class='const'><span class='object_link'><a href="../../Compony.html" title="Compony (module)">Compony</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../ModelFields.html" title="Compony::ModelFields (module)">ModelFields</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../ModelFields/Anchormodel.html" title="Compony::ModelFields::Anchormodel (class)">Anchormodel</a></span></span><span class='period'>.</span><span class='id identifier rubyid_collect'><span class='object_link'><a href="../ModelFields/Anchormodel.html#collect-class_method" title="Compony::ModelFields::Anchormodel.collect (method)">collect</a></span></span><span class='lparen'>(</span><span class='op'>...</span><span class='rparen'>)</span>
|
|
@@ -689,12 +689,12 @@
|
|
|
689
689
|
<pre class="lines">
|
|
690
690
|
|
|
691
691
|
|
|
692
|
-
189
|
|
693
692
|
190
|
|
694
|
-
191
|
|
693
|
+
191
|
|
694
|
+
192</pre>
|
|
695
695
|
</td>
|
|
696
696
|
<td>
|
|
697
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line
|
|
697
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line 190</span>
|
|
698
698
|
|
|
699
699
|
<span class='kw'>def</span> <span class='id identifier rubyid_disable!'>disable!</span>
|
|
700
700
|
<span class='ivar'>@form_disabled</span> <span class='op'>=</span> <span class='kw'>true</span>
|
|
@@ -748,13 +748,13 @@
|
|
|
748
748
|
<pre class="lines">
|
|
749
749
|
|
|
750
750
|
|
|
751
|
-
176
|
|
752
751
|
177
|
|
753
752
|
178
|
|
754
|
-
179
|
|
753
|
+
179
|
|
754
|
+
180</pre>
|
|
755
755
|
</td>
|
|
756
756
|
<td>
|
|
757
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line
|
|
757
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line 177</span>
|
|
758
758
|
|
|
759
759
|
<span class='kw'>def</span> <span class='id identifier rubyid_f'>f</span>
|
|
760
760
|
<span class='id identifier rubyid_fail'>fail</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>The `f` method may only be called inside `form_fields` for </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_inspect'>inspect</span><span class='embexpr_end'>}</span><span class='tstring_content'>.</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='ivar'>@simpleform</span>
|
|
@@ -815,7 +815,7 @@
|
|
|
815
815
|
|
|
816
816
|
—
|
|
817
817
|
<div class='inline'>
|
|
818
|
-
<p>If true, generates one suffixed input per
|
|
818
|
+
<p>If true, generates one suffixed input per content locale and returns the array (useful with the “mobility” gem). See <span class='object_link'><a href="../../Compony.html#content_locales-class_method" title="Compony.content_locales (method)">Compony.content_locales</a></span>.</p>
|
|
819
819
|
</div>
|
|
820
820
|
|
|
821
821
|
</li>
|
|
@@ -863,7 +863,6 @@
|
|
|
863
863
|
<pre class="lines">
|
|
864
864
|
|
|
865
865
|
|
|
866
|
-
113
|
|
867
866
|
114
|
|
868
867
|
115
|
|
869
868
|
116
|
|
@@ -895,16 +894,17 @@
|
|
|
895
894
|
142
|
|
896
895
|
143
|
|
897
896
|
144
|
|
898
|
-
145
|
|
897
|
+
145
|
|
898
|
+
146</pre>
|
|
899
899
|
</td>
|
|
900
900
|
<td>
|
|
901
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line
|
|
901
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line 114</span>
|
|
902
902
|
|
|
903
903
|
<span class='kw'>def</span> <span class='id identifier rubyid_field'>field</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='label'>multilang:</span> <span class='kw'>false</span><span class='comma'>,</span> <span class='op'>**</span><span class='id identifier rubyid_input_opts'>input_opts</span><span class='rparen'>)</span>
|
|
904
904
|
<span class='id identifier rubyid_fail'>fail</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>The `field` method may only be called inside `form_fields` for </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_inspect'>inspect</span><span class='embexpr_end'>}</span><span class='tstring_content'>.</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='ivar'>@simpleform</span>
|
|
905
905
|
|
|
906
906
|
<span class='kw'>if</span> <span class='id identifier rubyid_multilang'>multilang</span>
|
|
907
|
-
<span class='const'>
|
|
907
|
+
<span class='const'><span class='object_link'><a href="../../Compony.html" title="Compony (module)">Compony</a></span></span><span class='period'>.</span><span class='id identifier rubyid_content_locales'><span class='object_link'><a href="../../Compony.html#content_locales-class_method" title="Compony.content_locales (method)">content_locales</a></span></span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_locale'>locale</span><span class='op'>|</span> <span class='id identifier rubyid_field'>field</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_content'>_</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_locale'>locale</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='op'>**</span><span class='id identifier rubyid_input_opts'>input_opts</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
|
|
908
908
|
<span class='kw'>else</span>
|
|
909
909
|
<span class='id identifier rubyid_name'>name</span> <span class='op'>=</span> <span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span>
|
|
910
910
|
|
|
@@ -1063,12 +1063,12 @@
|
|
|
1063
1063
|
<pre class="lines">
|
|
1064
1064
|
|
|
1065
1065
|
|
|
1066
|
-
197
|
|
1067
1066
|
198
|
|
1068
|
-
199
|
|
1067
|
+
199
|
|
1068
|
+
200</pre>
|
|
1069
1069
|
</td>
|
|
1070
1070
|
<td>
|
|
1071
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line
|
|
1071
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line 198</span>
|
|
1072
1072
|
|
|
1073
1073
|
<span class='kw'>def</span> <span class='id identifier rubyid_form_params'>form_params</span><span class='lparen'>(</span><span class='op'>**</span><span class='id identifier rubyid_new_form_params'>new_form_params</span><span class='rparen'>)</span>
|
|
1074
1074
|
<span class='ivar'>@form_params</span> <span class='op'>=</span> <span class='id identifier rubyid_new_form_params'>new_form_params</span>
|
|
@@ -1158,7 +1158,6 @@
|
|
|
1158
1158
|
<pre class="lines">
|
|
1159
1159
|
|
|
1160
1160
|
|
|
1161
|
-
153
|
|
1162
1161
|
154
|
|
1163
1162
|
155
|
|
1164
1163
|
156
|
|
@@ -1175,10 +1174,11 @@
|
|
|
1175
1174
|
167
|
|
1176
1175
|
168
|
|
1177
1176
|
169
|
|
1178
|
-
170
|
|
1177
|
+
170
|
|
1178
|
+
171</pre>
|
|
1179
1179
|
</td>
|
|
1180
1180
|
<td>
|
|
1181
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line
|
|
1181
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line 154</span>
|
|
1182
1182
|
|
|
1183
1183
|
<span class='kw'>def</span> <span class='id identifier rubyid_pw_field'>pw_field</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='op'>**</span><span class='id identifier rubyid_input_opts'>input_opts</span><span class='rparen'>)</span>
|
|
1184
1184
|
<span class='id identifier rubyid_fail'>fail</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>The `pw_field` method may only be called inside `form_fields` for </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_inspect'>inspect</span><span class='embexpr_end'>}</span><span class='tstring_content'>.</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='ivar'>@simpleform</span>
|
|
@@ -1267,17 +1267,17 @@
|
|
|
1267
1267
|
<pre class="lines">
|
|
1268
1268
|
|
|
1269
1269
|
|
|
1270
|
-
273
|
|
1271
1270
|
274
|
|
1272
1271
|
275
|
|
1273
1272
|
276
|
|
1274
1273
|
277
|
|
1275
1274
|
278
|
|
1276
1275
|
279
|
|
1277
|
-
280
|
|
1276
|
+
280
|
|
1277
|
+
281</pre>
|
|
1278
1278
|
</td>
|
|
1279
1279
|
<td>
|
|
1280
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line
|
|
1280
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line 274</span>
|
|
1281
1281
|
|
|
1282
1282
|
<span class='kw'>def</span> <span class='id identifier rubyid_schema'>schema</span><span class='lparen'>(</span><span class='id identifier rubyid_wrapper_key'>wrapper_key</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
|
1283
1283
|
<span class='kw'>if</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
|
|
@@ -1405,7 +1405,7 @@
|
|
|
1405
1405
|
|
|
1406
1406
|
—
|
|
1407
1407
|
<div class='inline'>
|
|
1408
|
-
<p>If true, whitelists one suffixed field per
|
|
1408
|
+
<p>If true, whitelists one suffixed field per content locale, see <span class='object_link'><a href="../../Compony.html#content_locales-class_method" title="Compony.content_locales (method)">Compony.content_locales</a></span> (useful with the “mobility” gem).</p>
|
|
1409
1409
|
</div>
|
|
1410
1410
|
|
|
1411
1411
|
</li>
|
|
@@ -1419,7 +1419,6 @@
|
|
|
1419
1419
|
<pre class="lines">
|
|
1420
1420
|
|
|
1421
1421
|
|
|
1422
|
-
221
|
|
1423
1422
|
222
|
|
1424
1423
|
223
|
|
1425
1424
|
224
|
|
@@ -1437,14 +1436,15 @@
|
|
|
1437
1436
|
236
|
|
1438
1437
|
237
|
|
1439
1438
|
238
|
|
1440
|
-
239
|
|
1439
|
+
239
|
|
1440
|
+
240</pre>
|
|
1441
1441
|
</td>
|
|
1442
1442
|
<td>
|
|
1443
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line
|
|
1443
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line 222</span>
|
|
1444
1444
|
|
|
1445
1445
|
<span class='kw'>def</span> <span class='id identifier rubyid_schema_field'>schema_field</span><span class='lparen'>(</span><span class='id identifier rubyid_field_name'>field_name</span><span class='comma'>,</span> <span class='label'>multilang:</span> <span class='kw'>false</span><span class='rparen'>)</span>
|
|
1446
1446
|
<span class='kw'>if</span> <span class='id identifier rubyid_multilang'>multilang</span>
|
|
1447
|
-
<span class='const'>
|
|
1447
|
+
<span class='const'><span class='object_link'><a href="../../Compony.html" title="Compony (module)">Compony</a></span></span><span class='period'>.</span><span class='id identifier rubyid_content_locales'><span class='object_link'><a href="../../Compony.html#content_locales-class_method" title="Compony.content_locales (method)">content_locales</a></span></span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_locale'>locale</span><span class='op'>|</span> <span class='id identifier rubyid_schema_field'>schema_field</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_field_name'>field_name</span><span class='embexpr_end'>}</span><span class='tstring_content'>_</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_locale'>locale</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span> <span class='rbrace'>}</span>
|
|
1448
1448
|
<span class='kw'>else</span>
|
|
1449
1449
|
<span class='comment'># This runs upon component setup.
|
|
1450
1450
|
</span> <span class='ivar'>@schema_lines_for_data</span> <span class='op'><<</span> <span class='id identifier rubyid_proc'>proc</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_data'>data</span><span class='comma'>,</span> <span class='id identifier rubyid_controller'>controller</span><span class='op'>|</span>
|
|
@@ -1512,12 +1512,12 @@
|
|
|
1512
1512
|
<pre class="lines">
|
|
1513
1513
|
|
|
1514
1514
|
|
|
1515
|
-
264
|
|
1516
1515
|
265
|
|
1517
|
-
266
|
|
1516
|
+
266
|
|
1517
|
+
267</pre>
|
|
1518
1518
|
</td>
|
|
1519
1519
|
<td>
|
|
1520
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line
|
|
1520
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line 265</span>
|
|
1521
1521
|
|
|
1522
1522
|
<span class='kw'>def</span> <span class='id identifier rubyid_schema_fields'>schema_fields</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_field_names'>field_names</span><span class='rparen'>)</span>
|
|
1523
1523
|
<span class='id identifier rubyid_field_names'>field_names</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_field_name'>field_name</span><span class='op'>|</span> <span class='id identifier rubyid_schema_field'>schema_field</span><span class='lparen'>(</span><span class='id identifier rubyid_field_name'>field_name</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
|
|
@@ -1571,12 +1571,12 @@
|
|
|
1571
1571
|
<pre class="lines">
|
|
1572
1572
|
|
|
1573
1573
|
|
|
1574
|
-
211
|
|
1575
1574
|
212
|
|
1576
|
-
213
|
|
1575
|
+
213
|
|
1576
|
+
214</pre>
|
|
1577
1577
|
</td>
|
|
1578
1578
|
<td>
|
|
1579
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line
|
|
1579
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line 212</span>
|
|
1580
1580
|
|
|
1581
1581
|
<span class='kw'>def</span> <span class='id identifier rubyid_schema_line'>schema_line</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
|
1582
1582
|
<span class='ivar'>@schema_lines_for_data</span> <span class='op'><<</span> <span class='id identifier rubyid_proc'>proc</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid__data'>_data</span><span class='comma'>,</span> <span class='id identifier rubyid__controller'>_controller</span><span class='op'>|</span> <span class='id identifier rubyid_block'>block</span> <span class='rbrace'>}</span>
|
|
@@ -1632,7 +1632,6 @@
|
|
|
1632
1632
|
<pre class="lines">
|
|
1633
1633
|
|
|
1634
1634
|
|
|
1635
|
-
245
|
|
1636
1635
|
246
|
|
1637
1636
|
247
|
|
1638
1637
|
248
|
|
@@ -1645,10 +1644,11 @@
|
|
|
1645
1644
|
255
|
|
1646
1645
|
256
|
|
1647
1646
|
257
|
|
1648
|
-
258
|
|
1647
|
+
258
|
|
1648
|
+
259</pre>
|
|
1649
1649
|
</td>
|
|
1650
1650
|
<td>
|
|
1651
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line
|
|
1651
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line 246</span>
|
|
1652
1652
|
|
|
1653
1653
|
<span class='kw'>def</span> <span class='id identifier rubyid_schema_pw_field'>schema_pw_field</span><span class='lparen'>(</span><span class='id identifier rubyid_field_name'>field_name</span><span class='rparen'>)</span>
|
|
1654
1654
|
<span class='comment'># This runs upon component setup.
|
|
@@ -1746,12 +1746,12 @@
|
|
|
1746
1746
|
<pre class="lines">
|
|
1747
1747
|
|
|
1748
1748
|
|
|
1749
|
-
285
|
|
1750
1749
|
286
|
|
1751
|
-
287
|
|
1750
|
+
287
|
|
1751
|
+
288</pre>
|
|
1752
1752
|
</td>
|
|
1753
1753
|
<td>
|
|
1754
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line
|
|
1754
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/form.rb', line 286</span>
|
|
1755
1755
|
|
|
1756
1756
|
<span class='kw'>def</span> <span class='id identifier rubyid_skip_autofocus'>skip_autofocus</span>
|
|
1757
1757
|
<span class='ivar'>@skip_autofocus</span> <span class='op'>=</span> <span class='kw'>true</span>
|
|
@@ -1825,7 +1825,7 @@
|
|
|
1825
1825
|
</div>
|
|
1826
1826
|
|
|
1827
1827
|
<div id="footer">
|
|
1828
|
-
Generated on
|
|
1828
|
+
Generated on Wed Oct 7 10:48:20 2026 by
|
|
1829
1829
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1830
1830
|
0.9.34 (ruby-3.4.9).
|
|
1831
1831
|
</div>
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
</div>
|
|
163
163
|
|
|
164
164
|
<div id="footer">
|
|
165
|
-
Generated on
|
|
165
|
+
Generated on Wed Oct 7 10:48:21 2026 by
|
|
166
166
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
167
167
|
0.9.34 (ruby-3.4.9).
|
|
168
168
|
</div>
|
|
@@ -2705,7 +2705,7 @@
|
|
|
2705
2705
|
</div>
|
|
2706
2706
|
|
|
2707
2707
|
<div id="footer">
|
|
2708
|
-
Generated on
|
|
2708
|
+
Generated on Wed Oct 7 10:48:21 2026 by
|
|
2709
2709
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
2710
2710
|
0.9.34 (ruby-3.4.9).
|
|
2711
2711
|
</div>
|