Module: ActiveStorage::AsyncVariants::BlobExtension

Defined in:
lib/active_storage/async_variants/blob_extension.rb

Instance Method Summary collapse

Instance Method Details

#bucket_backed?Boolean

True when the blob’s service is a remote/cloud service that the async processing workers (Crucible, etc.) can reach via presigned URLs. The Disk and Test services return false; the gem then defers to vanilla ActiveStorage rather than trying to enqueue jobs or serve fallbacks.

Returns:

  • (Boolean)


10
11
12
# File 'lib/active_storage/async_variants/blob_extension.rb', line 10

def bucket_backed?
  service.respond_to?(:bucket)
end