Class: ActiveStorage::Blob
- Inherits:
-
Object
- Object
- ActiveStorage::Blob
- Defined in:
- lib/active_storage/service/ipfs_service.rb
Class Method Summary collapse
Class Method Details
.create_before_direct_upload!(key: nil, filename:, byte_size:, checksum:, content_type: nil, metadata: nil) ⇒ Object
12 13 14 |
# File 'lib/active_storage/service/ipfs_service.rb', line 12 def create_before_direct_upload!(key: nil, filename:, byte_size:, checksum:, content_type: nil, metadata: nil) find_or_create_by! key: key, filename: filename, byte_size: byte_size, checksum: checksum, content_type: content_type end |