Format the TypeDeChamp type_champs enum correctly

This commit is contained in:
gregoirenovel 2017-05-26 21:35:36 +02:00
parent 843bb9fd2c
commit 9f6edc5d1e

View file

@ -1,26 +1,26 @@
class TypeDeChamp < ActiveRecord::Base
enum type_champs: {
text: 'text',
textarea: 'textarea',
date: 'date',
datetime: 'datetime',
number: 'number',
checkbox: 'checkbox',
civilite: 'civilite',
email: 'email',
phone: 'phone',
address: 'address',
yes_no: 'yes_no',
drop_down_list: 'drop_down_list',
multiple_drop_down_list: 'multiple_drop_down_list',
pays: 'pays',
regions: 'regions',
departements: 'departements',
engagement: 'engagement',
header_section: 'header_section',
explication: 'explication',
dossier_link: 'dossier_link'
}
text: 'text',
textarea: 'textarea',
date: 'date',
datetime: 'datetime',
number: 'number',
checkbox: 'checkbox',
civilite: 'civilite',
email: 'email',
phone: 'phone',
address: 'address',
yes_no: 'yes_no',
drop_down_list: 'drop_down_list',
multiple_drop_down_list: 'multiple_drop_down_list',
pays: 'pays',
regions: 'regions',
departements: 'departements',
engagement: 'engagement',
header_section: 'header_section',
explication: 'explication',
dossier_link: 'dossier_link'
}
belongs_to :procedure