lib/granite/form/model/attributes/dictionary.rb in granite-form-0.1.1 vs lib/granite/form/model/attributes/dictionary.rb in granite-form-0.2.0

- old
+ new

@@ -9,10 +9,10 @@ @value ||= begin hash = read_before_type_cast hash = hash.stringify_keys.slice(*keys) if keys.present? normalize(Hash[hash.map do |key, value| - [key, enumerize(typecast(value))] + [key, enumerize(type_definition.ensure_type(value))] end].with_indifferent_access).with_indifferent_access end end def read_before_type_cast