lib/hashme/properties.rb in hashme-0.1.2 vs lib/hashme/properties.rb in hashme-0.2.0

- old
+ new

@@ -14,10 +14,10 @@ def set_attribute(name, value) property = get_property(name) if property.nil? self[name.to_sym] = value else - self[property.name] = value.present? ? property.cast(self, value) : value + self[property.name] = property.build(self, value) end end protected