Class: ROM::Registries::Datasets
- Includes:
- Nestable
- Defined in:
- lib/rom/registries/datasets.rb
Instance Method Summary collapse
- #define_component(**options) ⇒ Object private
- #fetch(key, &block) ⇒ Object (also: #[]) included from Nestable
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ROM::Registries::Root
Instance Method Details
#define_component(**options) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
12 13 14 15 16 17 18 |
# File 'lib/rom/registries/datasets.rb', line 12 def define_component(**) return super unless provider_type == :relation comp = components.get(:datasets, relation_id: config.component.id, abstract: false) comp || super(**, id: config.component.dataset, relation_id: config.component.id) end |