class Para::NestedFieldsGenerator

Public Instance Methods

generate_fields() click to toggle source
# 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() click to toggle source
# 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