method

transform_blob

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: VariantWithRecord
transform_blob() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activestorage/app/models/active_storage/variant_with_record.rb, line 47
    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
Register or log in to add new notes.