Class: Para::NestedFieldsGenerator
Instance Method Summary
collapse
#find_partial_for, #find_relation_name_for, #flash_message, #registered_components_options, #resource_title_for, #template_path_lookup
#resource_name
Instance Method Details
#generate_fields ⇒ Object
10
11
12
13
14
15
|
# File 'lib/generators/para/nested_fields/nested_fields_generator.rb', line 10
def generate_fields
template(
"_nested_fields.html.haml",
"app/views/admin/#{ plural_namespaced_path }/_fields.html.haml"
)
end
|
#generate_fields_container ⇒ Object
17
18
19
20
21
22
|
# File 'lib/generators/para/nested_fields/nested_fields_generator.rb', line 17
def generate_fields_container
template(
"../../../../../app/views/para/inputs/nested_many/_container.html.haml",
"app/views/admin/#{ plural_namespaced_path }/nested_many/_container.html.haml"
) if options[:container]
end
|