nested_form_fields 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- 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_has_many_association_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_has_many_association_with_template(association_name, association, options, block)
|
40
40
|
name = "#{object_name}[#{association_name}_attributes]"
|
41
41
|
association = convert_to_model(association)
|
42
42
|
|