From f7b20b4f7c94d98234773feab93f373270a4e84f Mon Sep 17 00:00:00 2001 From: Ismael Celis Date: Sat, 24 Aug 2024 18:25:07 +0100 Subject: [PATCH] Make sure that array default doesn't break Plumb::Attributes --- spec/data_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/data_spec.rb b/spec/data_spec.rb index 2bd86a9..0cb7d12 100644 --- a/spec/data_spec.rb +++ b/spec/data_spec.rb @@ -15,7 +15,7 @@ class Company < Types::Data attribute :email, String[/.+@.+/] end attribute :company, Company - attribute :books, Array do + attribute :books, Array.default([].freeze) do attribute :isbn, String end