lib/avromatic/model/builder.rb in avromatic-0.22.0 vs lib/avromatic/model/builder.rb in avromatic-0.23.0
- old
+ new
@@ -40,10 +40,10 @@
end
def inclusions
[
ActiveModel::Validations,
- Virtus.value_object,
+ config.mutable ? Virtus.model : Virtus.value_object,
Avromatic::Model::Configurable,
Avromatic::Model::NestedModels,
Avromatic::Model::Validation,
Avromatic::Model::Attributes,
Avromatic::Model::ValueObject,