Module: ROM::Factory::Attributes::Association Private
- Defined in:
- lib/rom/factory/attributes/association.rb
Overview
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.
rubocop:disable Style/OptionalArguments
Defined Under Namespace
Classes: Core, ManyToMany, ManyToOne, OneToMany, OneToOne, OneToOneThrough
Class Method Summary collapse
Class Method Details
.new(assoc, builder, *traits, **options) ⇒ 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.
9 10 11 |
# File 'lib/rom/factory/attributes/association.rb', line 9 def new(assoc, builder, *traits, **) const_get(assoc.definition.type).new(assoc, builder, *traits, **) end |