Method: Para::FormBuilder::NestedForm#nested_attribute_name

Defined in:
lib/para/form_builder/nested_form.rb

#nested_attribute_nameObject



69
70
71
72
73
74
# File 'lib/para/form_builder/nested_form.rb', line 69

def nested_attribute_name
  options[:nested_attribute_name] ||=
    if (match = object_name.match(/\[(\w+)_attributes\]/))
      match[1]
    end
end