Class: PersistentAttachments::PensionBurial
- Inherits:
-
PersistentAttachment
- Object
- PersistentAttachment
- PersistentAttachments::PensionBurial
- Defined in:
- app/models/persistent_attachments/pension_burial.rb
Constant Summary collapse
- UPLOAD_TO_API_EMAILS =
%w[ [email protected] ].freeze
Instance Method Summary collapse
Instance Method Details
#can_upload_to_api? ⇒ Boolean
12 13 14 |
# File 'app/models/persistent_attachments/pension_burial.rb', line 12 def can_upload_to_api? UPLOAD_TO_API_EMAILS.include?(saved_claim.email) end |
#delete_file ⇒ Object (private)
18 19 20 |
# File 'app/models/persistent_attachments/pension_burial.rb', line 18 def delete_file file.delete end |