Fix Sets::ModelSet spec

This commit is contained in:
Matt-Yorkley
2021-01-23 12:31:55 +00:00
parent 29c34060e9
commit 1911d25959

View File

@@ -13,6 +13,7 @@ module Sets
# Set here first, to ensure that we apply collection_attributes to the right collection
@collection = attributes[:collection] if attributes[:collection]
@collection = @collection.to_a
attributes.each do |name, value|
public_send("#{name}=", value)