lib/cocina/models/validatable.rb in cocina-models-0.96.0 vs lib/cocina/models/validatable.rb in cocina-models-0.98.0

- old
+ new

@@ -13,10 +13,10 @@ end end def new(*args) validate = args.first.delete(:validate) if args.present? - new_model = super(*args) + new_model = super Validators::Validator.validate(new_model.class, new_model) if validate || validate.nil? new_model end end end