Module: ROM::Repository::RelationReader::InstanceMethods Private
- Defined in:
- repository/lib/rom/repository/relation_reader.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
Instance Method Details
#relation_reader(name, relation_cache) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
31 32 33 34 |
# File 'repository/lib/rom/repository/relation_reader.rb', line 31 def relation_reader(name, relation_cache) key = [name, auto_struct, struct_namespace] relation_cache[key] ||= set_relation(name) end |
#set_relation(name) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
25 26 27 28 29 |
# File 'repository/lib/rom/repository/relation_reader.rb', line 25 def set_relation(name) container .relations[name] .with(auto_struct: auto_struct, struct_namespace: struct_namespace) end |