lib/cocina/models/validators/validator.rb in cocina-models-0.78.0 vs lib/cocina/models/validators/validator.rb in cocina-models-0.79.0
- old
+ new
@@ -24,11 +24,10 @@
# And add require 'active_support/core_ext/hash/deep_transform_values' to models file.
# In the meantime, copying code.
attributes_hash = deep_transform_values(attributes.to_h) do |value|
value.class.name.starts_with?('Cocina::Models') ? value.to_h : value
- end.with_indifferent_access
-
+ end.deep_symbolize_keys.with_indifferent_access
VALIDATORS.each { |validator| validator.validate(clazz, attributes_hash) }
end
def self.deep_transform_values(object, &block)
case object