AttestationTemplate: store logo and signature with uuid
This commit is contained in:
parent
475675f75d
commit
3dce5b9b5e
7 changed files with 68 additions and 6 deletions
|
@ -3,8 +3,8 @@ class AttestationTemplate < ApplicationRecord
|
|||
|
||||
belongs_to :procedure
|
||||
|
||||
mount_uploader :logo, AttestationTemplateImageUploader
|
||||
mount_uploader :signature, AttestationTemplateImageUploader
|
||||
mount_uploader :logo, AttestationTemplateLogoUploader
|
||||
mount_uploader :signature, AttestationTemplateSignatureUploader
|
||||
|
||||
validate :logo_signature_file_size
|
||||
validates :footer, length: { maximum: 190 }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue