Allow administrateur to try dossier info on aperçu page

This commit is contained in:
Paul Chavard 2018-09-07 17:17:51 +01:00
parent f3333595a0
commit b63038faca

View file

@ -10,6 +10,7 @@ class Administrateur < ApplicationRecord
has_many :administrateurs_procedures
has_many :admin_procedures, through: :administrateurs_procedures, source: :procedure
has_many :services
has_many :dossiers, -> { state_not_brouillon }, through: :procedures
before_validation -> { sanitize_email(:email) }
before_save :ensure_api_token