lib/hashie_model/base.rb in hashie-model-1.3.6 vs lib/hashie_model/base.rb in hashie-model-1.3.7
- old
+ new
@@ -16,10 +16,12 @@
options = type
type = nil
end
property(name, options)
-
+
+ self.superclass.key_coercions.each_pair { |key, into| coerce_key(key, into) }
+
if type
coerce_key(name.to_sym, type)
coerce_key(name.to_s, type)
end