lib/dry/schema/key_coercer.rb in dry-schema-0.6.0 vs lib/dry/schema/key_coercer.rb in dry-schema-1.0.0
- old
+ new
@@ -31,10 +31,10 @@
@key_map = key_map.coercible(&coercer)
end
# @api private
def call(source)
- key_map.write(Hash(source))
+ key_map.write(source.to_h)
end
alias_method :[], :call
end
end
end