Add a dossiers_from_avis relation to Gestionnaire

This commit is contained in:
gregoirenovel 2018-01-16 09:23:20 +01:00
parent 4c0b273e97
commit a050bc20de

View file

@ -10,6 +10,7 @@ class Gestionnaire < ActiveRecord::Base
has_many :followed_dossiers, through: :follows, source: :dossier
has_many :follows
has_many :avis
has_many :dossiers_from_avis, through: :avis, source: :dossier
include CredentialsSyncableConcern