Add STI types de champ models

This commit is contained in:
Paul Chavard 2018-02-14 15:12:25 +01:00
parent e8f3fda1f0
commit a9f078265a
22 changed files with 42 additions and 2 deletions

View file

@ -1,6 +1,4 @@
class TypeDeChamp < ApplicationRecord
self.inheritance_column = :_type_disabled
enum type_champs: {
text: 'text',
textarea: 'textarea',

View file

@ -0,0 +1,2 @@
class TypesDeChamp::AddressTypeDeChamp < TypesDeChamp::TextTypeDeChamp
end

View file

@ -0,0 +1,2 @@
class TypesDeChamp::CheckboxTypeDeChamp < TypeDeChamp
end

View file

@ -0,0 +1,2 @@
class TypesDeChamp::CiviliteTypeDeChamp < TypeDeChamp
end

View file

@ -0,0 +1,2 @@
class TypesDeChamp::DateTypeDeChamp < TypeDeChamp
end

View file

@ -0,0 +1,2 @@
class TypesDeChamp::DatetimeTypeDeChamp < TypeDeChamp
end

View file

@ -0,0 +1,2 @@
class TypesDeChamp::DepartementTypeDeChamp < TypesDeChamp::TextTypeDeChamp
end

View file

@ -0,0 +1,2 @@
class TypesDeChamp::DossierLinkTypeDeChamp < TypeDeChamp
end

View file

@ -0,0 +1,2 @@
class TypesDeChamp::DropDownListTypeDeChamp < TypeDeChamp
end

View file

@ -0,0 +1,2 @@
class TypesDeChamp::EmailTypeDeChamp < TypesDeChamp::TextTypeDeChamp
end

View file

@ -0,0 +1,2 @@
class TypesDeChamp::EngagementTypeDeChamp < TypesDeChamp::CheckboxTypeDeChamp
end

View file

@ -0,0 +1,2 @@
class TypesDeChamp::ExplicationTypeDeChamp < TypesDeChamp::TextTypeDeChamp
end

View file

@ -0,0 +1,2 @@
class TypesDeChamp::HeaderSectionTypeDeChamp < TypeDeChamp
end

View file

@ -0,0 +1,2 @@
class TypesDeChamp::MultipleDropDownListTypeDeChamp < TypeDeChamp
end

View file

@ -0,0 +1,2 @@
class TypesDeChamp::NumberTypeDeChamp < TypeDeChamp
end

View file

@ -0,0 +1,2 @@
class TypesDeChamp::PaysTypeDeChamp < TypesDeChamp::TextTypeDeChamp
end

View file

@ -0,0 +1,2 @@
class TypesDeChamp::PhoneTypeDeChamp < TypesDeChamp::TextTypeDeChamp
end

View file

@ -0,0 +1,2 @@
class TypesDeChamp::PieceJustificativeTypeDeChamp < TypeDeChamp
end

View file

@ -0,0 +1,2 @@
class TypesDeChamp::RegionTypeDeChamp < TypesDeChamp::TextTypeDeChamp
end

View file

@ -0,0 +1,2 @@
class TypesDeChamp::TextTypeDeChamp < TypeDeChamp
end

View file

@ -0,0 +1,2 @@
class TypesDeChamp::TextareaTypeDeChamp < TypesDeChamp::TextTypeDeChamp
end

View file

@ -0,0 +1,2 @@
class TypesDeChamp::YesNoTypeDeChamp < TypesDeChamp::CheckboxTypeDeChamp
end