lib/para/attribute_field/nested_many.rb in para-0.7.1 vs lib/para/attribute_field/nested_many.rb in para-0.7.2

- old
+ new

@@ -7,11 +7,11 @@ register :nested_many, self def parse_input(params, resource) if (nested_attributes = params[nested_attributes_key]) nested_attributes.each do |index, attributes| - mappings = nested_model_mappings(attributes) nested_resource = fetch_or_build_nested_resource_for(resource, index, attributes) + mappings = nested_model_mappings(attributes, nested_resource) mappings.fields.each do |field| field.parse_input(attributes, nested_resource) end