Class: ROM::Registries::Associations

Inherits:
Root
  • Object
show all
Defined in:
lib/rom/registries/associations.rb

Instance Method Summary collapse

Methods inherited from Root

#build, #disconnect, #each, #empty?, #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

#fetch(key, &block) ⇒ Object Also known as: []



8
9
10
11
12
# File 'lib/rom/registries/associations.rb', line 8

def fetch(key, &block)
  super(key) {
    components.key?(key) ? super(key, &block) : fetch_aliased_association(key)
  }
end