db/seeds/fields.rb in fat_free_crm-0.20.1 vs db/seeds/fields.rb in fat_free_crm-0.21.0
- old
+ new
@@ -10,13 +10,11 @@
{ field_type: '', name: '', label: '', required: '' }
]
},
{
params: { label: 'Contact Information', tooltip: '' },
- fields: [
-
- ]
+ fields: []
}
],
'Campaign' => [
{
params: { label: 'General Information', tooltip: '' },
@@ -26,33 +24,25 @@
{ field_type: '', name: '', label: '', required: '' }
]
},
{
params: { label: 'Contact Information', tooltip: '' },
- fields: [
-
- ]
+ fields: []
}
],
'Contact' => [
{
params: { label: 'General Information', tooltip: '' },
- fields: [
-
- ]
+ fields: []
},
{
params: { label: 'Extra Information', tooltip: '' },
- fields: [
-
- ]
+ fields: []
},
{
params: { label: 'Web presence', tooltip: '' },
- fields: [
-
- ]
+ fields: []
}
],
'Lead' => [
{
params: { label: 'General Information', tooltip: '' },
@@ -62,13 +52,11 @@
{ field_type: '', name: '', label: '', required: '' }
]
},
{
params: { label: 'Contact Information', tooltip: '' },
- fields: [
-
- ]
+ fields: []
}
],
'Opportunity' => [
{
params: { label: 'General Information', tooltip: '' },
@@ -78,12 +66,10 @@
{ field_type: '', name: '', label: '', required: '' }
]
},
{
params: { label: 'Contact Information', tooltip: '' },
- fields: [
-
- ]
+ fields: []
}
]
}.each_with_index do |(klass_name, groups), group_position|
groups.each do |group|
field_group = FieldGroup.create group[:params].merge(klass_name: klass_name, position: group_position)