Class: ROM::Registries::Datasets

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

Instance Method Summary collapse

Methods included from Nestable

#fetch

Methods inherited from Root

#build, #disconnect, #each, #empty?, #fetch, #handler, #ids, #infer, #inspect, #key?, #keys, #map_with, #plugins, #provider, #provider_type, #scoped, #trigger

Methods included from Initializer

extended

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