From 1911d2595960bf032db2ef5446e69f0ae8484d22 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Sat, 23 Jan 2021 12:31:55 +0000 Subject: [PATCH] Fix Sets::ModelSet spec --- app/services/sets/model_set.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/services/sets/model_set.rb b/app/services/sets/model_set.rb index 87e2ef4655..4cafcd924b 100644 --- a/app/services/sets/model_set.rb +++ b/app/services/sets/model_set.rb @@ -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)