module ROM::Repository::RelationReader::InstanceMethods
Private Instance Methods
Source
# File lib/rom/repository/relation_reader.rb, line 13 def prepare_relation(name, **) container .relations[name] .with( auto_struct: auto_struct, struct_namespace: struct_namespace ) end
@api public
Source
# File lib/rom/repository/relation_reader.rb, line 32 def relation_cache_key(name, **kwargs) [name, auto_struct, struct_namespace, kwargs] end
@api private
Source
# File lib/rom/repository/relation_reader.rb, line 26 def relation_reader(cache, ...) cache_key = relation_cache_key(...) cache.fetch_or_store(*cache_key) { prepare_relation(...) } end
@api private