Module: Para::Component

Defined in:
lib/para/component.rb,
lib/para/component/history.rb,
lib/para/component/exportable.rb,
lib/para/component/importable.rb,
app/models/para/component/base.rb,
app/models/para/component/crud.rb,
app/models/para/component/form.rb,
lib/para/component/subclassable.rb,
app/models/para/component/resource.rb,
app/models/para/component/settings.rb,
app/decorators/para/component/base_decorator.rb,
app/decorators/para/component/crud_decorator.rb,
app/decorators/para/component/form_decorator.rb,
app/decorators/para/component/settings_decorator.rb,
lib/generators/para/component/crud/crud_generator.rb

Defined Under Namespace

Modules: BaseDecorator, CrudDecorator, Exportable, FormDecorator, History, Importable, SettingsDecorator, Subclassable Classes: Base, Crud, CrudGenerator, Form, ModelName, Resource, Settings

Class Method Summary collapse

Class Method Details

.configObject



13
14
15
# File 'lib/para/component.rb', line 13

def self.config
  @config ||= Para::ComponentsConfiguration.new
end

.registered_component?(identifier) ⇒ Boolean

Returns:

  • (Boolean)


7
8
9
10
11
# File 'lib/para/component.rb', line 7

def self.registered_component?(identifier)
  registered_components.any? do |component_identifier, _|
    component_identifier == identifier
  end
end

.registered_componentsObject



3
4
5
# File 'lib/para/component.rb', line 3

def self.registered_components
  @registered_components ||= {}
end