diff --git a/lib/rom/factory/attributes/association.rb b/lib/rom/factory/attributes/association.rb index 640017f..ffc286e 100644 --- a/lib/rom/factory/attributes/association.rb +++ b/lib/rom/factory/attributes/association.rb @@ -173,7 +173,7 @@ def call(attrs = EMPTY_HASH, parent, persist: true) structs = count.times.map do if persist && attrs[tpk] - attrs + attrs elsif persist builder.persistable.create(*traits, **attrs) else