method
transform_blob
v6.1.7.7 -
Show latest stable
- Class:
ActiveStorage::VariantWithRecord
transform_blob()private
No documentation available.
# File activestorage/app/models/active_storage/variant_with_record.rb, line 33
def transform_blob
blob.open do |input|
variation.transform(input) do |output|
yield io: output, filename: "#{blob.filename.base}.#{variation.format.downcase}",
content_type: variation.content_type, service_name: blob.service.name
end
end
end