This PR supports building structs when associated factories do not define parent associations.
factory(:parent) do |f|
f.association(:child)
end
factory(:child) do |f|
end
# Before
factories[:parent] #=> Works!
factories.structs[:parent] #=> UnknownAttributeErrror :parent when structing the child
# After
factories[:parent] #=> Works!
factories.structs[:parent] #=> Works!
This PR supports building structs when associated factories do not define parent associations.