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