Class: ROM::Registries::Associations
- Defined in:
- lib/rom/registries/associations.rb
Instance Method Summary collapse
- #fetch(key, &block) ⇒ Object (also: #[])
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
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 |