mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Fix Sets::ModelSet spec
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user