instance method transform_blob

Ruby on Rails 6.1.7.10

Since v6.1.7.10 Private

Available in: v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

transform_blob()

No documentation comment.

Source
# 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

Defined in activestorage/app/models/active_storage/variant_with_record.rb line 33 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveStorage::VariantWithRecord

Type at least 2 characters to search.

↑↓ navigate · open · esc close