lib/rom/factory/dsl.rb in rom-factory-0.11.0 vs lib/rom/factory/dsl.rb in rom-factory-0.12.0
- old
+ new
@@ -48,10 +48,16 @@
yield(self)
end
# @api private
def call
- ::ROM::Factory::Builder.new(_attributes, _traits, relation: _relation, struct_namespace: _struct_namespace)
+ ::ROM::Factory::Builder.new(
+ _attributes,
+ _traits,
+ relation: _relation,
+ struct_namespace: _struct_namespace,
+ factories: _factories
+ )
end
# Delegate to a builder and persist a struct
#
# @param [Symbol] The name of the registered builder