app/services/hyrax/simple_schema_loader.rb in hyrax-5.0.0.rc2 vs app/services/hyrax/simple_schema_loader.rb in hyrax-5.0.0.rc3
- old
+ new
@@ -13,10 +13,10 @@
#
# @return [Hash<Symbol, Dry::Types::Type>] a map from attribute names to
# types
def attributes_for(schema:)
definitions(schema).each_with_object({}) do |definition, hash|
- hash[definition.name] = definition.type
+ hash[definition.name] = definition.type.meta(definition.config)
end
end
##
# @param [Symbol] schema