Add STI champ models
This commit is contained in:
parent
8fe5c25c46
commit
e8f3fda1f0
22 changed files with 42 additions and 2 deletions
|
@ -1,6 +1,4 @@
|
|||
class Champ < ApplicationRecord
|
||||
self.inheritance_column = :_type_disabled
|
||||
|
||||
belongs_to :dossier, touch: true
|
||||
belongs_to :type_de_champ, inverse_of: :champ
|
||||
has_many :commentaires
|
||||
|
|
2
app/models/champs/address_champ.rb
Normal file
2
app/models/champs/address_champ.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
class Champs::AddressChamp < Champs::TextChamp
|
||||
end
|
2
app/models/champs/checkbox_champ.rb
Normal file
2
app/models/champs/checkbox_champ.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
class Champs::CheckboxChamp < Champ
|
||||
end
|
2
app/models/champs/civilite_champ.rb
Normal file
2
app/models/champs/civilite_champ.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
class Champs::CiviliteChamp < Champ
|
||||
end
|
2
app/models/champs/date_champ.rb
Normal file
2
app/models/champs/date_champ.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
class Champs::DateChamp < Champ
|
||||
end
|
2
app/models/champs/datetime_champ.rb
Normal file
2
app/models/champs/datetime_champ.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
class Champs::DatetimeChamp < Champ
|
||||
end
|
2
app/models/champs/departement_champ.rb
Normal file
2
app/models/champs/departement_champ.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
class Champs::DepartementChamp < Champs::TextChamp
|
||||
end
|
2
app/models/champs/dossier_link_champ.rb
Normal file
2
app/models/champs/dossier_link_champ.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
class Champs::DossierLinkChamp < Champ
|
||||
end
|
2
app/models/champs/drop_down_list_champ.rb
Normal file
2
app/models/champs/drop_down_list_champ.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
class Champs::DropDownListChamp < Champ
|
||||
end
|
2
app/models/champs/email_champ.rb
Normal file
2
app/models/champs/email_champ.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
class Champs::EmailChamp < Champs::TextChamp
|
||||
end
|
2
app/models/champs/engagement_champ.rb
Normal file
2
app/models/champs/engagement_champ.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
class Champs::EngagementChamp < Champs::CheckboxChamp
|
||||
end
|
2
app/models/champs/explication_champ.rb
Normal file
2
app/models/champs/explication_champ.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
class Champs::ExplicationChamp < Champs::TextChamp
|
||||
end
|
2
app/models/champs/header_section_champ.rb
Normal file
2
app/models/champs/header_section_champ.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
class Champs::HeaderSectionChamp < Champ
|
||||
end
|
2
app/models/champs/multiple_drop_down_list_champ.rb
Normal file
2
app/models/champs/multiple_drop_down_list_champ.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
class Champs::MultipleDropDownListChamp < Champ
|
||||
end
|
2
app/models/champs/number_champ.rb
Normal file
2
app/models/champs/number_champ.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
class Champs::NumberChamp < Champ
|
||||
end
|
2
app/models/champs/pays_champ.rb
Normal file
2
app/models/champs/pays_champ.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
class Champs::PaysChamp < Champs::TextChamp
|
||||
end
|
2
app/models/champs/phone_champ.rb
Normal file
2
app/models/champs/phone_champ.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
class Champs::PhoneChamp < Champs::TextChamp
|
||||
end
|
2
app/models/champs/piece_justificative_champ.rb
Normal file
2
app/models/champs/piece_justificative_champ.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
class Champs::PieceJustificativeChamp < Champ
|
||||
end
|
2
app/models/champs/region_champ.rb
Normal file
2
app/models/champs/region_champ.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
class Champs::RegionChamp < Champs::TextChamp
|
||||
end
|
2
app/models/champs/text_champ.rb
Normal file
2
app/models/champs/text_champ.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
class Champs::TextChamp < Champ
|
||||
end
|
2
app/models/champs/textarea_champ.rb
Normal file
2
app/models/champs/textarea_champ.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
class Champs::TextareaChamp < Champs::TextChamp
|
||||
end
|
2
app/models/champs/yes_no_champ.rb
Normal file
2
app/models/champs/yes_no_champ.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
class Champs::YesNoChamp < Champs::CheckboxChamp
|
||||
end
|
Loading…
Reference in a new issue