Module: Para

Extended by:
ActiveSupport::Autoload
Defined in:
lib/para/exporter/table.rb,
lib/para.rb,
lib/para/ext.rb,
lib/para/job.rb,
lib/para/sti.rb,
lib/para/page.rb,
lib/para/cache.rb,
lib/para/config.rb,
lib/para/engine.rb,
lib/para/errors.rb,
lib/para/inputs.rb,
lib/para/markup.rb,
lib/para/routes.rb,
lib/para/search.rb,
lib/para/helpers.rb,
lib/para/logging.rb,
lib/para/plugins.rb,
lib/para/routing.rb,
lib/para/version.rb,
lib/para/exporter.rb,
lib/para/importer.rb,
lib/para/job/base.rb,
lib/para/cloneable.rb,
lib/para/component.rb,
lib/para/orderable.rb,
lib/para/generators.rb,
lib/para/log_config.rb,
lib/para/page/model.rb,
lib/para/breadcrumbs.rb,
lib/para/plugins/set.rb,
lib/para/exporter/csv.rb,
lib/para/exporter/xls.rb,
lib/para/markup/alert.rb,
lib/para/markup/modal.rb,
lib/para/markup/panel.rb,
lib/para/exporter/base.rb,
lib/para/ext/paperclip.rb,
lib/para/importer/base.rb,
app/models/para/ability.rb,
lib/para/plugins/routes.rb,
lib/para/sti/root_model.rb,
lib/para/attribute_field.rb,
lib/para/search/distinct.rb,
lib/para/ext/turbo_stream.rb,
lib/para/markup/component.rb,
app/models/para/cache/item.rb,
lib/para/component/history.rb,
lib/para/form_builder/tabs.rb,
app/helpers/para/tag_helper.rb,
lib/para/components_cleaner.rb,
lib/para/ext/deep_cloneable.rb,
lib/para/simple_form_config.rb,
app/helpers/para/form_helper.rb,
app/helpers/para/tree_helper.rb,
app/models/para/library/file.rb,
app/models/para/page/section.rb,
lib/para/breadcrumbs/manager.rb,
lib/para/controller_resource.rb,
lib/para/model_field_parsers.rb,
app/helpers/para/flash_helper.rb,
app/helpers/para/model_helper.rb,
lib/para/attribute_field/base.rb,
lib/para/attribute_field/enum.rb,
lib/para/attribute_field/file.rb,
lib/para/cache/database_store.rb,
lib/para/component/exportable.rb,
lib/para/component/importable.rb,
app/helpers/para/markup_helper.rb,
app/helpers/para/search_helper.rb,
app/models/para/component/base.rb,
app/models/para/component/crud.rb,
app/models/para/component/form.rb,
lib/para/attribute_field/image.rb,
lib/para/ext/active_job_status.rb,
lib/para/form_builder/ordering.rb,
lib/para/form_builder/settings.rb,
lib/para/generators/named_base.rb,
lib/para/helpers/resource_name.rb,
lib/para/markup/resources_tree.rb,
lib/para/breadcrumbs/breadcrumb.rb,
lib/para/breadcrumbs/controller.rb,
lib/para/component/subclassable.rb,
lib/para/markup/resources_table.rb,
app/helpers/para/ordering_helper.rb,
lib/para/attribute_field/boolean.rb,
lib/para/form_builder/containers.rb,
lib/para/generators/name_helpers.rb,
lib/para/inputs/nested_one_input.rb,
app/models/para/component_section.rb,
lib/para/attribute_field/datetime.rb,
lib/para/attribute_field/has_many.rb,
lib/para/attribute_field/password.rb,
lib/para/attribute_field/relation.rb,
lib/para/attribute_field_mappings.rb,
lib/para/components_configuration.rb,
lib/para/form_builder/nested_form.rb,
lib/para/generators/field_helpers.rb,
lib/para/inputs/nested_base_input.rb,
lib/para/inputs/nested_many_input.rb,
lib/para/markup/resources_buttons.rb,
lib/para/model_field_parsers/base.rb,
app/helpers/para/admin/base_helper.rb,
app/helpers/para/admin/page_helper.rb,
app/helpers/para/navigation_helper.rb,
app/models/para/application_record.rb,
app/models/para/component/resource.rb,
app/models/para/component/settings.rb,
app/models/para/component_resource.rb,
lib/para/active_storage_downloader.rb,
lib/para/inputs/multi_select_input.rb,
lib/para/model_field_parsers/enums.rb,
lib/para/model_field_parsers/store.rb,
app/helpers/para/application_helper.rb,
lib/para/attribute_field/belongs_to.rb,
lib/para/attribute_field/nested_one.rb,
lib/para/model_field_parsers/devise.rb,
app/helpers/para/translations_helper.rb,
lib/para/attribute_field/friendly_id.rb,
lib/para/attribute_field/nested_many.rb,
lib/para/attribute_field/translation.rb,
lib/para/form_builder/field_mappings.rb,
lib/para/helpers/attributes_mappings.rb,
lib/para/postgres_extensions_checker.rb,
app/helpers/para/admin/history_helper.rb,
app/models/para/page/section_resource.rb,
lib/para/attribute_field/nested_field.rb,
lib/para/cloneable/attachments_cloner.rb,
lib/para/generators/component_helpers.rb,
app/helpers/para/search_results_helper.rb,
lib/para/model_field_parsers/globalize.rb,
lib/para/model_field_parsers/orderable.rb,
lib/para/model_field_parsers/paperclip.rb,
lib/para/model_field_parsers/relations.rb,
app/helpers/para/admin/resources_helper.rb,
lib/generators/para/form/form_generator.rb,
lib/para/attribute_field/wysiwyg_editor.rb,
lib/para/cloneable/include_tree_builder.rb,
app/helpers/para/admin/components_helper.rb,
app/helpers/para/admin/decorators_helper.rb,
app/helpers/para/admin/pagination_helper.rb,
lib/para/model_field_parsers/friendly_id.rb,
lib/generators/para/table/table_generator.rb,
lib/para/model_field_parsers/closure_tree.rb,
app/controllers/para/admin/base_controller.rb,
app/controllers/para/admin/jobs_controller.rb,
app/controllers/para/admin/main_controller.rb,
lib/para/logging/active_job_log_subscriber.rb,
lib/para/routing/component_name_constraint.rb,
app/controllers/para/application_controller.rb,
app/helpers/para/admin/nested_inputs_helper.rb,
lib/para/model_field_parsers/wysiwyg_editor.rb,
app/controllers/para/admin/search_controller.rb,
app/decorators/para/component/base_decorator.rb,
app/decorators/para/component/crud_decorator.rb,
app/decorators/para/component/form_decorator.rb,
lib/para/ext/active_record_nested_attributes.rb,
app/controllers/para/admin/exports_controller.rb,
app/controllers/para/admin/imports_controller.rb,
lib/generators/para/filters/filters_generator.rb,
lib/generators/para/install/install_generator.rb,
app/helpers/para/admin/component_groups_helper.rb,
app/controllers/para/admin/component_controller.rb,
app/controllers/para/admin/resources_controller.rb,
app/decorators/para/component_section_decorator.rb,
lib/generators/para/exporter/exporter_generator.rb,
lib/generators/para/importer/importer_generator.rb,
lib/generators/para/resource/resource_generator.rb,
app/decorators/para/component/settings_decorator.rb,
lib/para/routing/component_controller_constraint.rb,
lib/generators/para/component/component_generator.rb,
lib/generators/para/component/crud/crud_generator.rb,
lib/generators/para/orderable/orderable_generator.rb,
lib/generators/para/tree_item/tree_item_generator.rb,
lib/para/form_builder/attributes_mappings_tracker.rb,
app/controllers/para/admin/nested_forms_controller.rb,
lib/generators/para/page/section/section_generator.rb,
lib/generators/para/admin_user/admin_user_generator.rb,
app/controllers/para/admin/crud_resources_controller.rb,
app/controllers/para/admin/form_resources_controller.rb,
app/controllers/para/admin/settings_component_controller.rb,
lib/generators/para/nested_fields/nested_fields_generator.rb,
app/controllers/concerns/para/admin/resource_controller_concerns.rb

Overview

Allows constraining routing to components that explicitly declares to use a given controller to manage their resources.

It’s mainly used to allow users to override the default controller for the resources of a given Crud or Form components without having to subclass the component and declare all the routes again

Defined Under Namespace

Modules: ActiveRecordOrderableMixin, Admin, ApplicationHelper, AttributeField, Breadcrumbs, Cache, Cloneable, Component, ComponentSectionDecorator, Config, Exporter, Ext, FlashHelper, FormBuilder, FormHelper, Generators, Helpers, Importer, Inputs, Job, Library, Logging, Markup, MarkupHelper, ModelFieldParsers, ModelHelper, NavigationHelper, Orderable, OrderingHelper, Page, Plugins, Routing, Search, SearchHelper, SearchResultsHelper, SimpleFormConfig, Sti, TagHelper, TranslationsHelper, TreeHelper Classes: Ability, ActiveStorageDownloader, AdminUserGenerator, ApplicationController, ApplicationRecord, AttributeFieldMappings, BaseException, ComponentGenerator, ComponentNotFound, ComponentResource, ComponentSection, ComponentsCleaner, ComponentsConfiguration, ControllerResource, Engine, ExporterGenerator, FiltersGenerator, FormGenerator, ImporterGenerator, InstallGenerator, LogConfig, NestedFieldsGenerator, OrderableGenerator, PostgresExtensionsChecker, ResourceGenerator, Routes, TableGenerator, TreeItemGenerator

Constant Summary collapse

VERSION =
'0.12.4'

Class Method Summary collapse

Class Method Details

.componentsObject



58
59
60
# File 'lib/para.rb', line 58

def self.components
  Para::Component.config
end

.config(&block) ⇒ Object



50
51
52
53
54
55
56
# File 'lib/para.rb', line 50

def self.config(&block)
  if block
    block.call(Para::Config)
  else
    Para::Config
  end
end

.storeObject



62
63
64
# File 'lib/para.rb', line 62

def self.store
  RequestStore.store
end

.table_name_prefixObject



66
67
68
# File 'lib/para.rb', line 66

def self.table_name_prefix
  'para_'
end