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

- old
+ new

@@ -17,12 +17,11 @@ # Programming. # # @example With Hanami::Entity # require 'hanami/model' # - # class Person - # include Hanami::Entity + # class Person < Hanami::Entity # end # # If we expand the code above in **pure Ruby**, it would be: # # @example Pure Ruby @@ -181,10 +180,10 @@ # # @return [Hash] the result of serialization # # @since 0.1.0 def to_h - attributes.deep_dup.to_h + Utils::Hash.deep_dup(attributes) end # @since 0.7.0 alias to_hash to_h