Class: Spina::Parts::Attachment
- Inherits:
-
Base
- Object
- Base
- Spina::Parts::Attachment
show all
- Defined in:
- app/models/spina/parts/attachment.rb
Instance Attribute Summary
Attributes inherited from Base
#hint, #item_name, #title
Instance Method Summary
collapse
Methods inherited from Base
#label
Instance Method Details
#content ⇒ Object
8
9
10
|
# File 'app/models/spina/parts/attachment.rb', line 8
def content
self
end
|
#present? ⇒ Boolean
12
13
14
|
# File 'app/models/spina/parts/attachment.rb', line 12
def present?
signed_blob_id.present?
end
|
#signed_id(expires_at: nil, expires_in: nil) ⇒ Object
Rails 7.1 started using ‘expires_at’, so we include both expires_in and expires_at for backwards compatibility
19
20
21
|
# File 'app/models/spina/parts/attachment.rb', line 19
def signed_id(expires_at: nil, expires_in: nil)
signed_blob_id
end
|