Add type de champ repetition models (with row)
This commit is contained in:
parent
3977294613
commit
5d1c24f3d8
18 changed files with 132 additions and 19 deletions
|
@ -18,8 +18,8 @@ class Dossier < ApplicationRecord
|
|||
has_one :attestation, dependent: :destroy
|
||||
|
||||
has_many :pieces_justificatives, dependent: :destroy
|
||||
has_many :champs, -> { public_only.ordered }, dependent: :destroy
|
||||
has_many :champs_private, -> { private_only.ordered }, class_name: 'Champ', dependent: :destroy
|
||||
has_many :champs, -> { root.public_only.ordered }, dependent: :destroy
|
||||
has_many :champs_private, -> { root.private_only.ordered }, class_name: 'Champ', dependent: :destroy
|
||||
has_many :commentaires, dependent: :destroy
|
||||
has_many :invites, dependent: :destroy
|
||||
has_many :follows
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue