method

format

Importance_0
v6.1.3.1 - Show latest stable - 0 notes - Class: Variation
format() public

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/variation.rb, line 60
  def format
    transformations.fetch(:format, :png).tap do |format|
      if MiniMime.lookup_by_extension(format.to_s).nil?
        raise ArgumentError, "Invalid variant format (#{format.inspect})"
      end
    end
  end
Register or log in to add new notes.