Add Siret(TypeDe)Champ STI model
This commit is contained in:
parent
3cd80af6cb
commit
0b79a3d79d
4 changed files with 10 additions and 0 deletions
4
app/models/champs/siret_champ.rb
Normal file
4
app/models/champs/siret_champ.rb
Normal file
|
@ -0,0 +1,4 @@
|
|||
class Champs::SiretChamp < Champ
|
||||
belongs_to :etablissement, dependent: :destroy
|
||||
accepts_nested_attributes_for :etablissement, allow_destroy: true, update_only: true
|
||||
end
|
2
app/models/types_de_champ/siret_type_de_champ.rb
Normal file
2
app/models/types_de_champ/siret_type_de_champ.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
class TypesDeChamp::SiretTypeDeChamp < TypeDeChamp
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue