[#1563] Remove attestation mail attachment

This commit is contained in:
Frederic Merizen 2018-03-08 17:17:18 +01:00
parent e961df5481
commit 5ef129d960
6 changed files with 9 additions and 97 deletions

View file

@ -2,10 +2,4 @@ class Attestation < ApplicationRecord
belongs_to :dossier
mount_uploader :pdf, AttestationUploader
MAX_SIZE_EMAILABLE = 2.megabytes
def emailable?
pdf.size <= MAX_SIZE_EMAILABLE
end
end