Add STI types de champ models
This commit is contained in:
parent
e8f3fda1f0
commit
a9f078265a
22 changed files with 42 additions and 2 deletions
|
@ -1,6 +1,4 @@
|
|||
class TypeDeChamp < ApplicationRecord
|
||||
self.inheritance_column = :_type_disabled
|
||||
|
||||
enum type_champs: {
|
||||
text: 'text',
|
||||
textarea: 'textarea',
|
||||
|
|
2
app/models/types_de_champ/address_type_de_champ.rb
Normal file
2
app/models/types_de_champ/address_type_de_champ.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
class TypesDeChamp::AddressTypeDeChamp < TypesDeChamp::TextTypeDeChamp
|
||||
end
|
2
app/models/types_de_champ/checkbox_type_de_champ.rb
Normal file
2
app/models/types_de_champ/checkbox_type_de_champ.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
class TypesDeChamp::CheckboxTypeDeChamp < TypeDeChamp
|
||||
end
|
2
app/models/types_de_champ/civilite_type_de_champ.rb
Normal file
2
app/models/types_de_champ/civilite_type_de_champ.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
class TypesDeChamp::CiviliteTypeDeChamp < TypeDeChamp
|
||||
end
|
2
app/models/types_de_champ/date_type_de_champ.rb
Normal file
2
app/models/types_de_champ/date_type_de_champ.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
class TypesDeChamp::DateTypeDeChamp < TypeDeChamp
|
||||
end
|
2
app/models/types_de_champ/datetime_type_de_champ.rb
Normal file
2
app/models/types_de_champ/datetime_type_de_champ.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
class TypesDeChamp::DatetimeTypeDeChamp < TypeDeChamp
|
||||
end
|
2
app/models/types_de_champ/departement_type_de_champ.rb
Normal file
2
app/models/types_de_champ/departement_type_de_champ.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
class TypesDeChamp::DepartementTypeDeChamp < TypesDeChamp::TextTypeDeChamp
|
||||
end
|
2
app/models/types_de_champ/dossier_link_type_de_champ.rb
Normal file
2
app/models/types_de_champ/dossier_link_type_de_champ.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
class TypesDeChamp::DossierLinkTypeDeChamp < TypeDeChamp
|
||||
end
|
|
@ -0,0 +1,2 @@
|
|||
class TypesDeChamp::DropDownListTypeDeChamp < TypeDeChamp
|
||||
end
|
2
app/models/types_de_champ/email_type_de_champ.rb
Normal file
2
app/models/types_de_champ/email_type_de_champ.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
class TypesDeChamp::EmailTypeDeChamp < TypesDeChamp::TextTypeDeChamp
|
||||
end
|
2
app/models/types_de_champ/engagement_type_de_champ.rb
Normal file
2
app/models/types_de_champ/engagement_type_de_champ.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
class TypesDeChamp::EngagementTypeDeChamp < TypesDeChamp::CheckboxTypeDeChamp
|
||||
end
|
2
app/models/types_de_champ/explication_type_de_champ.rb
Normal file
2
app/models/types_de_champ/explication_type_de_champ.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
class TypesDeChamp::ExplicationTypeDeChamp < TypesDeChamp::TextTypeDeChamp
|
||||
end
|
|
@ -0,0 +1,2 @@
|
|||
class TypesDeChamp::HeaderSectionTypeDeChamp < TypeDeChamp
|
||||
end
|
|
@ -0,0 +1,2 @@
|
|||
class TypesDeChamp::MultipleDropDownListTypeDeChamp < TypeDeChamp
|
||||
end
|
2
app/models/types_de_champ/number_type_de_champ.rb
Normal file
2
app/models/types_de_champ/number_type_de_champ.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
class TypesDeChamp::NumberTypeDeChamp < TypeDeChamp
|
||||
end
|
2
app/models/types_de_champ/pays_type_de_champ.rb
Normal file
2
app/models/types_de_champ/pays_type_de_champ.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
class TypesDeChamp::PaysTypeDeChamp < TypesDeChamp::TextTypeDeChamp
|
||||
end
|
2
app/models/types_de_champ/phone_type_de_champ.rb
Normal file
2
app/models/types_de_champ/phone_type_de_champ.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
class TypesDeChamp::PhoneTypeDeChamp < TypesDeChamp::TextTypeDeChamp
|
||||
end
|
|
@ -0,0 +1,2 @@
|
|||
class TypesDeChamp::PieceJustificativeTypeDeChamp < TypeDeChamp
|
||||
end
|
2
app/models/types_de_champ/region_type_de_champ.rb
Normal file
2
app/models/types_de_champ/region_type_de_champ.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
class TypesDeChamp::RegionTypeDeChamp < TypesDeChamp::TextTypeDeChamp
|
||||
end
|
2
app/models/types_de_champ/text_type_de_champ.rb
Normal file
2
app/models/types_de_champ/text_type_de_champ.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
class TypesDeChamp::TextTypeDeChamp < TypeDeChamp
|
||||
end
|
2
app/models/types_de_champ/textarea_type_de_champ.rb
Normal file
2
app/models/types_de_champ/textarea_type_de_champ.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
class TypesDeChamp::TextareaTypeDeChamp < TypesDeChamp::TextTypeDeChamp
|
||||
end
|
2
app/models/types_de_champ/yes_no_type_de_champ.rb
Normal file
2
app/models/types_de_champ/yes_no_type_de_champ.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
class TypesDeChamp::YesNoTypeDeChamp < TypesDeChamp::CheckboxTypeDeChamp
|
||||
end
|
Loading…
Reference in a new issue