Class: ROM::Finalize::FinalizeRelations::RegistryReaders

Inherits:
Module
  • Object
show all
Defined in:
lib/rom/setup/finalize/finalize_relations.rb

Instance Method Summary collapse

Constructor Details

#initialize(relations) ⇒ RegistryReaders



13
14
15
16
17
18
19
# File 'lib/rom/setup/finalize/finalize_relations.rb', line 13

def initialize(relations)
  super()

  relations.each do |name|
    define_method(name) { __registry__[name] }
  end
end