lib/avromatic/model/validation.rb in avromatic-3.0.2 vs lib/avromatic/model/validation.rb in avromatic-4.0.0

- old
+ new

@@ -62,12 +62,10 @@ else missing_attributes.concat(Avromatic::Model::Validation.missing_nested_attributes(field.name, value)) end end - if recursively_immutable? - @missing_attributes = missing_attributes.freeze - end + @missing_attributes = missing_attributes.freeze if recursively_immutable? missing_attributes end end end