Module: ROM::Plugins::Relation::SQL::AutoWrap::InstanceInterface Private
- Defined in:
- lib/rom/plugins/relation/sql/auto_wrap.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
-
#for_wrap(keys, name) ⇒ SQL::Relation
private
Default methods for fetching wrapped relation.
Instance Method Details
#for_wrap(keys, name) ⇒ SQL::Relation
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.
Default methods for fetching wrapped relation
This method is used by default by ‘wrap` and `wrap_parents`
34 35 36 37 38 39 |
# File 'lib/rom/plugins/relation/sql/auto_wrap.rb', line 34 def for_wrap(keys, name) other = __registry__[name] other_dataset = other.name.dataset schema.merge(other.schema.wrap).qualified.(inner_join(other_dataset, keys)) end |