nested_form_fields 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/nested_form_fields.rb +2 -2
- data/lib/nested_form_fields/version.rb +1 -1
- metadata +1 -1
data/lib/nested_form_fields.rb
CHANGED
|
@@ -17,7 +17,7 @@ module ActionView::Helpers
|
|
|
17
17
|
fields_options[:parent_builder] = self
|
|
18
18
|
fields_options[:namespace] = fields_options[:parent_builder].options[:namespace]
|
|
19
19
|
|
|
20
|
-
return
|
|
20
|
+
return fields_for_with_nested_attributes_with_template(record_name, record_object, fields_options, block)
|
|
21
21
|
end
|
|
22
22
|
|
|
23
23
|
|
|
@@ -36,7 +36,7 @@ module ActionView::Helpers
|
|
|
36
36
|
|
|
37
37
|
private
|
|
38
38
|
|
|
39
|
-
def
|
|
39
|
+
def fields_for_with_nested_attributes_with_template(association_name, association, options, block)
|
|
40
40
|
name = "#{object_name}[#{association_name}_attributes]"
|
|
41
41
|
association = convert_to_model(association)
|
|
42
42
|
|