Link user and instructeur

This commit is contained in:
simon lehericey 2019-08-08 16:49:40 +02:00
parent e3fd1cc33a
commit dd4ffb926c
4 changed files with 13 additions and 1 deletions

View file

@ -24,6 +24,8 @@ class Instructeur < ApplicationRecord
has_many :dossiers_from_avis, through: :avis, source: :dossier
has_many :trusted_device_tokens
has_one :user
def visible_procedures
procedures.merge(Procedure.avec_lien.or(Procedure.archivees))
end