lib/moneta/api/data_mapper.rb in moneta-api-1.12.6 vs lib/moneta/api/data_mapper.rb in moneta-api-1.12.7

- old
+ new

@@ -40,11 +40,12 @@ end end def fill(data) properties.each do |property, type| - value = data[ property ] - if value + if data.has_key?(property) + value = data[property] + property_value = type.nil? ? value : build_complex_value(type, value) instance_variable_set("@#{ property }", property_value) end end