Add STI champ models

This commit is contained in:
Paul Chavard 2018-02-13 18:18:20 +01:00
parent 8fe5c25c46
commit e8f3fda1f0
22 changed files with 42 additions and 2 deletions

View file

@ -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

View file

@ -0,0 +1,2 @@
class Champs::AddressChamp < Champs::TextChamp
end

View file

@ -0,0 +1,2 @@
class Champs::CheckboxChamp < Champ
end

View file

@ -0,0 +1,2 @@
class Champs::CiviliteChamp < Champ
end

View file

@ -0,0 +1,2 @@
class Champs::DateChamp < Champ
end

View file

@ -0,0 +1,2 @@
class Champs::DatetimeChamp < Champ
end

View file

@ -0,0 +1,2 @@
class Champs::DepartementChamp < Champs::TextChamp
end

View file

@ -0,0 +1,2 @@
class Champs::DossierLinkChamp < Champ
end

View file

@ -0,0 +1,2 @@
class Champs::DropDownListChamp < Champ
end

View file

@ -0,0 +1,2 @@
class Champs::EmailChamp < Champs::TextChamp
end

View file

@ -0,0 +1,2 @@
class Champs::EngagementChamp < Champs::CheckboxChamp
end

View file

@ -0,0 +1,2 @@
class Champs::ExplicationChamp < Champs::TextChamp
end

View file

@ -0,0 +1,2 @@
class Champs::HeaderSectionChamp < Champ
end

View file

@ -0,0 +1,2 @@
class Champs::MultipleDropDownListChamp < Champ
end

View file

@ -0,0 +1,2 @@
class Champs::NumberChamp < Champ
end

View file

@ -0,0 +1,2 @@
class Champs::PaysChamp < Champs::TextChamp
end

View file

@ -0,0 +1,2 @@
class Champs::PhoneChamp < Champs::TextChamp
end

View file

@ -0,0 +1,2 @@
class Champs::PieceJustificativeChamp < Champ
end

View file

@ -0,0 +1,2 @@
class Champs::RegionChamp < Champs::TextChamp
end

View file

@ -0,0 +1,2 @@
class Champs::TextChamp < Champ
end

View file

@ -0,0 +1,2 @@
class Champs::TextareaChamp < Champs::TextChamp
end

View file

@ -0,0 +1,2 @@
class Champs::YesNoChamp < Champs::CheckboxChamp
end