instance method format

Ruby on Rails 5.2.8.1

Since v5.2.8.1 Last seen in v5.2.8.1 Private — implementation detail, not part of the public API

Signature

format(image)

No documentation comment.

Parameters

image req
Source
# File activestorage/app/models/active_storage/variant.rb, line 125
    def format(image)
      image.format("PNG") unless WEB_IMAGE_CONTENT_TYPES.include?(blob.content_type)
    end

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

Defined in ActiveStorage::Variant

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close