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.
Direct Known Subclasses
PersistentAttachments::DependencyClaim, PersistentAttachments::LgyClaim, PersistentAttachments::MilitaryRecords, PersistentAttachments::PensionBurial, PersistentAttachments::VAForm
Instance Method Summary collapse
- #stamp_text ⇒ Object private
- #to_pdf ⇒ Object
Methods inherited from ApplicationRecord
descendants_using_encryption, lockbox_options, #timestamp_attributes_for_update_in_model, #valid?
Instance Method Details
#stamp_text ⇒ Object (private)
22 23 24 |
# File 'app/models/persistent_attachment.rb', line 22 def stamp_text I18n.l(saved_claim.created_at, format: :pdf_stamp) end |
#to_pdf ⇒ Object
16 17 18 |
# File 'app/models/persistent_attachment.rb', line 16 def to_pdf Common::ConvertToPdf.new(file).run end |