Class: ROM::Factory::Attributes::Association::OneToOne Private
- Defined in:
- lib/rom/factory/attributes/association.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
Constructor Details
This class inherits a constructor from ROM::Factory::Attributes::Association::Core
Instance Method Details
#call(attrs = EMPTY_HASH, parent) ⇒ 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.
88 89 90 91 92 93 94 |
# File 'lib/rom/factory/attributes/association.rb', line 88 def call(attrs = EMPTY_HASH, parent) return if attrs.key?(name) struct = builder.persistable.create(assoc.associate(attrs, parent)) { name => struct } end |