Link assign_to and procedure by groupe_instructeur

This commit is contained in:
simon lehericey 2019-08-26 16:17:25 +02:00
parent 4da12ed3e8
commit ad7ef6c739
4 changed files with 4 additions and 4 deletions

View file

@ -1,8 +1,8 @@
class AssignTo < ApplicationRecord
belongs_to :procedure
belongs_to :instructeur
belongs_to :groupe_instructeur
has_one :procedure_presentation, dependent: :destroy
has_one :procedure, through: :groupe_instructeur
scope :with_email_notifications, -> { where(email_notifications_enabled: true) }