Sha256: 8b011a48175878e975ffb20e707b8852eaffbf4341e83c768774baadef83dd12
Contents?: true
Size: 560 Bytes
Versions: 1
Compression:
Stored size: 560 Bytes
Contents
module Spina module Parts class Attachment < Base attr_json :attachment_id, :integer, default: nil attr_json :signed_blob_id, :string, default: nil attr_json :filename, :string, default: "" def content self end def present? signed_blob_id.present? end # Rails 7.1 started using 'expires_at', so we # include both expires_in and expires_at for backwards # compatibility def signed_id(expires_at: nil, expires_in: nil) signed_blob_id end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spina-2.18.0 | app/models/spina/parts/attachment.rb |