Class: ROM::Registries::Datasets

Inherits:
Root
  • Object
show all
Includes:
Nestable
Defined in:
lib/rom/registries/datasets.rb

Instance Method Summary collapse

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(**options)
  return super unless provider_type == :relation

  comp = components.get(:datasets, relation_id: config.component.id, abstract: false)

  comp || super(**options, id: config.component.dataset, relation_id: config.component.id)
end

#fetch(key, &block) ⇒ Object Also known as: [] Originally defined in module Nestable