Class: ROM::Registries::Associations

Inherits:
Root
  • Object
show all
Defined in:
lib/rom/registries/associations.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

#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