instance method default_variant_format

Ruby on Rails 7.2.3

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

default_variant_format()

No documentation comment.

Source
# File activestorage/app/models/active_storage/blob/representable.rb, line 184
    def default_variant_format
      if web_image?
        format || :png
      else
        :png
      end
    end

Defined in activestorage/app/models/active_storage/blob/representable.rb line 184 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveStorage::Blob::Representable

Type at least 2 characters to search.

↑↓ navigate · open · esc close