lib/moneta/api/data_mapper.rb in moneta-api-1.12.0 vs lib/moneta/api/data_mapper.rb in moneta-api-1.12.1
- old
+ new
@@ -54,10 +54,10 @@
def to_hash
properties.each_with_object({}) do |(property, _), hash|
value = send(property)
unless value.nil?
- hash[ property.to_s.classify_with_lower ] = to_hash_complex_value(value)
+ hash[ property.to_s.camelize_with_lower ] = to_hash_complex_value(value)
end
end
end
private