instance method
compose
Ruby on Rails 8.1.2
Since v7.0.10Signature
compose(source_keys, destination_key, filename: nil, content_type: nil, disposition: nil, custom_metadata: {})
No documentation comment.
Parameters
-
source_keysreq -
destination_keyreq -
filenamekey = nil -
content_typekey = nil -
dispositionkey = nil -
custom_metadatakey = {}
Source
# File activestorage/lib/active_storage/service/gcs_service.rb, line 139
def compose(source_keys, destination_key, filename: nil, content_type: nil, disposition: nil, custom_metadata: {})
bucket.compose(source_keys, destination_key).update do |file|
file.content_type = content_type
file.content_disposition = content_disposition_with(type: disposition, filename: filename) if disposition && filename
file.metadata = custom_metadata
end
end
Defined in activestorage/lib/active_storage/service/gcs_service.rb line 139
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveStorage::Service::GCSService