lib/immutabler/template/builder.rb in immutabler-0.2.1 vs lib/immutabler/template/builder.rb in immutabler-0.2.2
- old
+ new
@@ -24,11 +24,11 @@
base_immutable: model.base_immutable,
builder_base_class: model.builder_base,
props: build_props(model.props),
any_mappings: model.mappings.any?,
array_mappings: model.mappings.select(&:array?),
- dict_mappings: build_dict_mappings(model.mappings),
+ dict_mappings: build_dict_mappings(model.mappings),
custom_mappers: build_custom_mappers(model.mappings),
mappings: build_mappings(model.mappings)
}
end
@@ -51,10 +51,10 @@
def build_dict_mappings(mappings)
mappings.select(&:dict?).map do |mapping|
attributes = mapping.dict_mappings.map do |dict_mapping|
{
- origin_name: dict_mapping[:origin_name],
+ origin_name: dict_mapping[:origin_name],
destination_name: dict_mapping[:destination_name]
}
end
{