Skip to content

Commit

Permalink
Make sure that array default doesn't break Plumb::Attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
ismasan committed Aug 24, 2024
1 parent 7148df4 commit f7b20b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/data_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f7b20b4

Please sign in to comment.