Class: PersistentAttachment
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- PersistentAttachment
- Includes:
- SetGuid
- Defined in:
- app/models/persistent_attachment.rb
Overview
Persistent backing of a Shrine file upload, primarily used by SavedClaim at the moment. Current subclasses are PensionBurial
Direct Known Subclasses
PersistentAttachments::DependencyClaim, PersistentAttachments::LgyClaim, PersistentAttachments::MilitaryRecords, PersistentAttachments::PensionBurial
Instance Method Summary collapse
Methods inherited from ApplicationRecord
descendants_using_encryption, lockbox_options, #timestamp_attributes_for_update_in_model, #valid?
Instance Method Details
#to_pdf ⇒ Object
16 17 18 |
# File 'app/models/persistent_attachment.rb', line 16 def to_pdf Common::ConvertToPdf.new(file).run end |