lib/hanami/entity/schema.rb in hanami-model-1.0.0 vs lib/hanami/entity/schema.rb in hanami-model-1.0.1

- old
+ new

@@ -71,11 +71,11 @@ # @api private def call(attributes) if attributes.nil? {} else - attributes.dup + Utils::Hash.deep_symbolize(attributes.to_hash.dup) end end # @since 0.7.0 # @api private @@ -219,12 +219,12 @@ # @raise [TypeError] if the process fails # # @since 0.7.0 # @api private def call(attributes) - Utils::Hash.new( + Utils::Hash.deep_symbolize( schema.call(attributes) - ).deep_symbolize! + ) end # @since 0.7.0 # @api private alias [] call