Class: DecisionReviewEvidenceAttachment

Inherits:
FormAttachment show all
Defined in:
app/models/decision_review_evidence_attachment.rb

Overview

Files uploaded as part of a Notice of Disagreement submission that will be sent to Lighthouse upon form submission. inherits from ApplicationRecord

Constant Summary collapse

ATTACHMENT_UPLOADER_CLASS =
DecisionReviewEvidenceAttachmentUploader

Instance Method Summary collapse

Methods inherited from FormAttachment

#get_file, #parsed_file_data, #set_file_data!

Methods included from SentryLogging

#log_exception_to_sentry, #log_message_to_sentry, #non_nil_hash?, #normalize_level, #rails_logger

Methods inherited from ApplicationRecord

descendants_using_encryption, lockbox_options, #timestamp_attributes_for_update_in_model, #valid?

Instance Method Details

#validate_pdfObject



18
19
20
21
# File 'app/models/decision_review_evidence_attachment.rb', line 18

def validate_pdf
  validation_enabled = Settings.decision_review.pdf_validation.enabled
  validation_enabled ? decision_review_pdf_service.validate_pdf_with_lighthouse(get_file) : true
end