lib/lotus/validations.rb in lotus-validations-0.3.0 vs lib/lotus/validations.rb in lotus-validations-0.3.1

- old
+ new

@@ -242,10 +242,13 @@ # # @return [Hash] # # @since 0.1.0 def to_h - Utils::Hash.new(read_attributes).deep_dup + # TODO remove this symbolization when we'll support Ruby 2.2+ only + Utils::Hash.new( + @attributes + ).deep_dup.symbolize!.to_h end private # The set of user defined validations. #