[#1203] Allow filtering tags based on an arbitray status

This commit is contained in:
Frederic Merizen 2018-01-10 15:03:56 +01:00
parent 1282fc2113
commit 9f7ffddb31
9 changed files with 40 additions and 35 deletions

View file

@ -11,6 +11,7 @@ class AttestationTemplate < ApplicationRecord
validates :footer, length: { maximum: 190 }
FILE_MAX_SIZE_IN_MB = 0.5
DOSSIER_STATE = 'accepte'
def attestation_for(dossier)
Attestation.new(title: replace_tags(title, dossier), pdf: build_pdf(dossier))